labwc/include
John Lindgren f129571779 ssd: unify struct ssd_part with struct node_descriptor
struct ssd_part and struct node_descriptor seem to have essentially the
same purpose: tag a wlr_scene_node with some extra data indicating what
we're using it for.

Also, as with enum ssd_part_type (now lab_node_type), ssd_part is used
for several types of nodes that are not part of SSD.

So instead of the current chaining (node_descriptor -> ssd_part), let's
flatten/unify the two structs.

In detail:

- First, merge node_descriptor_type into lab_node_type.
- Add a separate view pointer in node_descriptor, since in the case of
  SSD buttons we need separate view and button data pointers.
- Rename ssd_part_button to simply ssd_button. It no longer contains
  an ssd_part as base.
- Add node_try_ssd_button_from_node() which replaces
  node_ssd_part_from_node() + button_try_from_ssd_part().
- Factor out ssd_button_free() to be called in node descriptor destroy.
- Finally, get_cursor_context() needs a little reorganization to handle
  the unified structs.

Overall, this simplifies the code a bit, and in my opinion makes it
easier to understand. No functional change intended.
2025-09-06 16:00:20 -04:00
..
common ssd: unify struct ssd_part with struct node_descriptor 2025-09-06 16:00:20 -04:00
config common: add node-type.c/h (renaming ssd_part_type to lab_node_type) 2025-09-06 16:00:20 -04:00
foreign-toplevel foreign-toplevel: simplify and fully separate ext-foreign/wlr-foreign 2025-08-07 23:27:04 -04:00
img img: remove padding_x from lab_img_render() 2025-01-25 07:27:21 +09:00
input common: add node-type.c/h (renaming ssd_part_type to lab_node_type) 2025-09-06 16:00:20 -04:00
menu menu: dynamically generate top-level pipemenus 2025-03-10 19:42:03 +00:00
protocols Fix typos 2025-01-09 06:59:57 +00:00
scaled-buffer scaled-scene-buffer: restructure source files 2025-09-02 21:31:19 +01:00
action-prompt-codes.h labnag: return special value on timeout 2025-08-12 03:10:14 +09:00
action.h action: add support for <prompt> in 'If' actions 2025-08-09 10:44:03 +01:00
buffer.h buffer: add buffer_create_from_wlr_buffer() 2025-06-07 02:12:56 +09:00
debug.h includes: identifier consistency in include guards 2023-05-13 22:29:21 +01:00
decorations.h project wide: clean up event listeners on shutdown 2025-03-13 17:33:51 +09:00
desktop-entry.h Move "#if HAVE_LIBSFDO" inside desktop-entry.h 2025-01-25 07:27:21 +09:00
dnd.h chase (dnd): refactor to use wlroot's scene_drag_icon 2023-12-03 18:24:26 +00:00
edges.h common: flesh out enum lab_edge and prefer over wlr_edges/wlr_direction 2025-08-26 20:36:43 -04:00
idle.h Add support for ext_idle_notify_v1.. 2023-07-09 08:26:33 +01:00
labwc.h ssd: unify struct ssd_part with struct node_descriptor 2025-09-06 16:00:20 -04:00
layers.h layers: don't send configure events in unmap handler 2025-06-27 22:03:37 +01:00
magnifier.h magnifier: rename some functions 2025-02-23 14:17:31 +09:00
meson.build Make xwayland support optional 2020-12-30 10:29:21 +00:00
node.h ssd: unify struct ssd_part with struct node_descriptor 2025-09-06 16:00:20 -04:00
osd.h osd: support window switcher with thumbnails 2025-08-29 20:42:01 +01:00
output-state.h output: remove ported wlr_output functions 2024-10-29 21:39:19 +00:00
output-virtual.h Add optional headless fallback output 2024-03-08 13:54:13 +01:00
output.h tree-wide: use enum types/constants where appropriate 2025-08-28 01:33:23 +09:00
overlay.h overlay: refactor 2025-08-31 13:24:51 +01:00
placement.h view: honor automatic placement when adjusting floating geometry 2023-12-30 16:50:09 +00:00
regions.h overlay: add snap-to-edge overlay (PR #1652) 2024-04-05 04:35:31 +02:00
resistance.h interactive: allow moving horizontally/vertically maximized window 2024-08-26 20:30:22 +02:00
resize-indicator.h include: add config/types.h 2025-08-21 16:55:25 +09:00
resize-outlines.h Implement <resize><drawContents> 2024-06-15 21:17:01 +01:00
session-lock.h session-lock: restore focused view on unlock 2024-07-07 15:48:32 +09:00
snap-constraints.h common: flesh out enum lab_edge and prefer over wlr_edges/wlr_direction 2025-08-26 20:36:43 -04:00
snap.h include: add config/types.h 2025-08-21 16:55:25 +09:00
ssd-internal.h ssd: unify struct ssd_part with struct node_descriptor 2025-09-06 16:00:20 -04:00
ssd.h ssd: unify struct ssd_part with struct node_descriptor 2025-09-06 16:00:20 -04:00
theme.h common: add node-type.c/h (renaming ssd_part_type to lab_node_type) 2025-09-06 16:00:20 -04:00
view-impl-common.h xwayland: notify correct window stacking order to xwayland 2025-04-01 16:48:40 +09:00
view.h view: expose view_set_maximized() instead of view_restore_to() 2025-09-01 20:44:09 +01:00
window-rules.h tree-wide: use enum types/constants where appropriate 2025-08-28 01:33:23 +09:00
workspaces.h ext-workspace protocol integration 2024-12-23 04:14:53 +01:00
xwayland.h xwayland: handle rare case of focus_in event occurring before map 2025-06-12 20:33:25 +01:00