]> git.mdlowis.com Git - proto/labwc.git/commit
dnd: fix focus at end of dnd operation
authorJohan Malm <jgm323@gmail.com>
Mon, 10 Jul 2023 15:56:02 +0000 (16:56 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 10 Jul 2023 16:17:59 +0000 (17:17 +0100)
commit598044aa6bdb7e888d70c105967f04c44ad1f8f8
treea9127a71af1ee623be19282fb9c8aaade993e5e0
parent40aba9e5427b4c1ca6c5f623d1231501c1fa68f5
dnd: fix focus at end of dnd operation

By default, leave keyboard-focus with the surface that originally had it
at the end of a dnd operation.  This is consistent with the default
behaviour of openbox and mutter.

If the 'focus/followMouse' option is enabled, then focus on the surface
under the cursor at the end of the dnd operation.

Fixes: issue #976
src/dnd.c