mirror of
https://github.com/labwc/labwc.git
synced 2026-03-30 11:10:41 -04:00
foreign: handle output error gracefully
This commit is contained in:
parent
289c784d5e
commit
5563cd1b20
1 changed files with 7 additions and 1 deletions
|
|
@ -30,8 +30,14 @@ foreign_toplevel_handle_create(struct view *view)
|
||||||
}
|
}
|
||||||
|
|
||||||
view_update_title(view);
|
view_update_title(view);
|
||||||
|
struct wlr_output *wlr_output = view_wlr_output(view);
|
||||||
|
if (!wlr_output) {
|
||||||
|
wlr_log(WLR_ERROR, "no wlr_output for (%s)",
|
||||||
|
view->impl->get_string_prop(view, "title"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
wlr_foreign_toplevel_handle_v1_output_enter(view->toplevel_handle,
|
wlr_foreign_toplevel_handle_v1_output_enter(view->toplevel_handle,
|
||||||
view_wlr_output(view));
|
wlr_output);
|
||||||
|
|
||||||
view->toplevel_handle_request_maximize.notify =
|
view->toplevel_handle_request_maximize.notify =
|
||||||
handle_toplevel_handle_request_maximize;
|
handle_toplevel_handle_request_maximize;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue