mirror of
https://github.com/labwc/labwc.git
synced 2026-02-09 10:07:31 -05: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);
|
seat_focus_surface(seat, NULL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (input_inhibit_blocks_surface(seat, view->surface->resource)) {
|
|
||||||
|
if (view->surface && input_inhibit_blocks_surface(seat, view->surface->resource)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -114,7 +115,8 @@ desktop_focus_and_activate_view(struct seat *seat, struct view *view)
|
||||||
view_minimize(view, false);
|
view_minimize(view, false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!view->mapped) {
|
|
||||||
|
if (!view->mapped || !view->surface) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue