]> git.mdlowis.com Git - proto/labwc.git/commit
desktop: refactor get_cursor_context()
authortokyo4j <hrak1529@gmail.com>
Mon, 8 Sep 2025 17:56:37 +0000 (02:56 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Tue, 9 Sep 2025 09:50:20 +0000 (18:50 +0900)
commit9f7e532852ba199b845f6ac9c98804010fbe378e
treeb0a212a060240ecfb11a18688c529b4bc6be55ba
parent3a3b873d0eca507b6fd6c89bf789c737107dd6c4
desktop: refactor get_cursor_context()

This patch should not change any behaviors.

This clarifies the semantics of cursor_context returned by
get_cursor_context() as I described in cursor.h; when cursor is on a
subsurface (e.g. xdg/x11/layer/session-lock), the returned ctx.surface
and ctx.node points to the subsurface rather than its parent.
include/input/cursor.h
src/desktop.c