]> git.mdlowis.com Git - proto/labwc.git/commit
layer: change focus better on 'none' keyboard-interactivity request
authorJohan Malm <jgm323@gmail.com>
Sat, 9 Mar 2024 15:03:26 +0000 (15:03 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 17 Mar 2024 21:18:47 +0000 (21:18 +0000)
commitcb361fbb559a602971a8175f1ea35bc8d291c80d
treec3f7a7ab018a59a3414f3f7edf43d774a54bac67
parent06bf71162ee34b35d46106d28412be69e8d173a0
layer: change focus better on 'none' keyboard-interactivity request

...and on unmap.

Add `try_to_focus_next_layer_or_toplevel()` which does the following
(in order of precedence):

- Give focus to last added overlay/top layer-shell client with exclusive
  interactivity on the output nearest the pointer (normally the one where
  the users is currently working). The reason for not considering clients
  on all outputs is that giving focus to a client on another output may be
  confusing to the user.

- Give focus to topmost toplevel if one exists (this was done previously
  anyway).
src/layers.c