]> git.mdlowis.com Git - proto/labwc.git/commit
desktop: don't use LAB_NODE_LAYER_SUBSURFACE node type
authortokyo4j <hrak1529@gmail.com>
Mon, 8 Sep 2025 17:51:33 +0000 (02:51 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Tue, 9 Sep 2025 09:50:20 +0000 (18:50 +0900)
commit3d670b772dddd928ee9d8e5889c53b62c0210327
tree5a11dc54ceb85f416c45a627111c86d77c68aae5
parent574b20fbff89a56189462e2cf3599f94a28846bb
desktop: don't use LAB_NODE_LAYER_SUBSURFACE node type

Instead, set ctx.type = LAB_NODE_LAYER_SURFACE for both layer-surfaces
and layer-subsurfaces.

This patch preserves the existing behaviors:
- Pressing a subsurface of an on-demand layer-surface gives pointer
  focus to the subsurface, but gives keyboard focus to the parent
  layer-surface (related: a5fcbfaf).
- Pressing a subsurface of a layer-surface doesn't close a popup
  (related: a89bcc3c).
include/common/node-type.h
include/common/surface-helpers.h [deleted file]
src/common/meson.build
src/common/surface-helpers.c [deleted file]
src/desktop.c
src/input/cursor.c