]> git.mdlowis.com Git - proto/labwc.git/commit
layer: change logic for giving keyboard-interactivity
authorJohan Malm <jgm323@gmail.com>
Sat, 9 Mar 2024 10:31:47 +0000 (10:31 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 17 Mar 2024 21:18:47 +0000 (21:18 +0000)
commit36058a63e2df103c75a99bb178bd2d98b2d9d486
tree15a868bd95b0006fcf0f958843b92a6bc72a726a
parent7e419f7584f6e6c047204612119733d4a85e005f
layer: change logic for giving keyboard-interactivity

Use the following logic:
 - Exclusive: Grant regardless of layer (previously it was only given if
   in top or overlay layers) AND grant if in the same or higher layer
   (nearer overlay) compared with other clients with exclusive
   interactivity.
 - On-demand: Grant only if no other layer-shell client has exclusive
   keyboard interactivity. Previously it was treated the same as
   exclusive.
 - None: Unset focus if the commit associated with the 'none' came from
   the currently focused layer. Previously it was just unset regardless.
include/layers.h
src/layers.c