]> git.mdlowis.com Git - proto/labwc.git/commit
cursor: fix focus when menu is closed by clicking its border
authortokyo4j <hrak1529@gmail.com>
Thu, 19 Dec 2024 08:04:10 +0000 (17:04 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Thu, 19 Dec 2024 15:43:06 +0000 (00:43 +0900)
commitb2a45ac8afed0186a32e0b319c0481b7f16d4d17
tree3e172e59dee96d6feb5cf5188c1ff64a3700083c
parente707e16130cfa014958e0e6b6c1fc322547d71c7
cursor: fix focus when menu is closed by clicking its border

Before this commit, the pointer focus is cleared when a menu is closed
by clicking its border. This is because get_cursor_context() returns
type=LAB_SSD_NONE when the cursor is on the menu border and
cursor_update_common() clears the pointer focus. This commit fixes this
by replacing cursor_update_common() with cursor_update_focus(), which
calls get_cursor_context() again after the menu scene-node is hidden.
src/input/cursor.c