]> git.mdlowis.com Git - proto/labwc.git/commit
desktop: let get_cursor_context() return layer-popup subsurface
authortokyo4j <hrak1529@gmail.com>
Mon, 8 Sep 2025 17:53:31 +0000 (02:53 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Tue, 9 Sep 2025 09:50:20 +0000 (18:50 +0900)
commit3a3b873d0eca507b6fd6c89bf789c737107dd6c4
tree745b541ef360347fd6850bc66689424007785a98
parent3d670b772dddd928ee9d8e5889c53b62c0210327
desktop: let get_cursor_context() return layer-popup subsurface

With this change, when a layer-popup has a subsurface and cursor is on
it, wl_pointer.enter/motion events are sent to the subsurface rather
than its parent layer-popup surface. I think this follows wayland spec
more closely.

Tested with my demo: https://github.com/tokyo4j/wayland-demo/tree/layer-popup
src/desktop.c