]> git.mdlowis.com Git - proto/labwc.git/commit
src/xwayland-unmanaged.c: Give keyboard focus back to topmost mapped view
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 30 Aug 2022 18:10:21 +0000 (20:10 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 30 Aug 2022 18:20:58 +0000 (19:20 +0100)
commit9c271d792d32030525c4d4c39715640aa10725d2
tree0abe47deaf31ef0a107b193168890d8c810c1da5
parentea6007d34c1cea2924c003e21db2a7ab1d7fd614
src/xwayland-unmanaged.c: Give keyboard focus back to topmost mapped view

Previously, when unmapping and not finding another unmanaged surface
to give keyboard focus to we were not doing anything. With this patch
we will give focus to the topmost mapped view which is the same
behavior that also happens when an usual X11 surface unmaps.

This fixes dmenu when being exited with ESC.

Reported-by: @Flrian
src/xwayland-unmanaged.c