mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
src/layers: handle unmap without any outputs left
This commit is contained in:
parent
a4d1fcfef2
commit
bb64dc81d6
1 changed files with 4 additions and 0 deletions
|
|
@ -136,6 +136,9 @@ try_to_focus_next_layer_or_toplevel(struct server *server)
|
|||
{
|
||||
struct seat *seat = &server->seat;
|
||||
struct output *output = output_nearest_to_cursor(server);
|
||||
if (!output) {
|
||||
goto no_output;
|
||||
}
|
||||
|
||||
enum zwlr_layer_shell_v1_layer overlay = ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY;
|
||||
enum zwlr_layer_shell_v1_layer top = ZWLR_LAYER_SHELL_V1_LAYER_TOP;
|
||||
|
|
@ -169,6 +172,7 @@ try_to_focus_next_layer_or_toplevel(struct server *server)
|
|||
* Unfocus the current layer-surface and focus the topmost toplevel if
|
||||
* one exists on the current workspace.
|
||||
*/
|
||||
no_output:
|
||||
if (seat->focused_layer) {
|
||||
seat_set_focus_layer(seat, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue