mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
desktop: Fix activating unmapped views
This can happen sometimes in xwayland, need to guard against this. Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
parent
f393dedf3f
commit
295d5172d4
1 changed files with 4 additions and 2 deletions
|
|
@ -102,7 +102,8 @@ desktop_focus_and_activate_view(struct seat *seat, struct view *view)
|
|||
seat_focus_surface(seat, NULL);
|
||||
return;
|
||||
}
|
||||
if (input_inhibit_blocks_surface(seat, view->surface->resource)) {
|
||||
|
||||
if (view->surface && input_inhibit_blocks_surface(seat, view->surface->resource)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -114,7 +115,8 @@ desktop_focus_and_activate_view(struct seat *seat, struct view *view)
|
|||
view_minimize(view, false);
|
||||
return;
|
||||
}
|
||||
if (!view->mapped) {
|
||||
|
||||
if (!view->mapped || !view->surface) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue