Files
RedBear-OS/local/recipes
vasilito cbbdad418f redbear-compositor: add zwlr_layer_shell_v1 + zwlr_output_manager_v1 globals
Adds two wlroots-origin Wayland protocols (previously only present as
opcodes in protocol.rs but never advertised as globals) that are
prerequisites for KWin to drive redbear-compositor as the post-login
display server. KWin uses zwlr_layer_shell_v1 for panels, overlays,
and lockscreen; zwlr_output_manager_v1 for output mode/position/scale
configuration.

protocol.rs:
* 14 new constants for zwlr_layer_shell_v1 (10 request opcodes,
  2 event opcodes, 4 layer enum values, 2 object type ids)
* 14 new constants for zwlr_output_manager_v1 (7 request opcodes,
  1 event opcode, 4 new OBJECT_TYPE_* entries)
* Total: 28 new constants

main.rs:
* Two new globals (14 zwlr_layer_shell_v1 v4, 15 zwlr_output_manager_v1 v4)
* Bind table entries for both new interfaces
* Dispatch arms for OBJECT_TYPE_ZWLR_LAYER_SHELL_V1 (DESTROY,
  GET_LAYER_SURFACE), OBJECT_TYPE_ZWLR_LAYER_SURFACE_V1 (DESTROY,
  ACK_CONFIGURE), OBJECT_TYPE_ZWLR_OUTPUT_MANAGER_V1 (DESTROY,
  CREATE_CONFIGURATION), OBJECT_TYPE_ZWLR_OUTPUT_CONFIG_V1 (DESTROY,
  APPLY, TEST)
* send_layer_surface_configure helper emits a serial-bearing
  ZWLR_LAYER_SURFACE_V1_CONFIGURE_EVENT
* send_output_config_serial helper emits ZWLR_OUTPUT_CONFIG_HEAD_V1_EVENT
* send_output_config_succeeded helper emits ZWLR_OUTPUT_CONFIG_V1_SUCCEEDED_EVENT

redbear-compositor now advertises 15 Wayland globals (the existing 13
plus these two). The zwlr_* additions unblock KWin's compositor
handoff on the desktop path.

Note: pre-existing compilation errors in the compositor tree
(unsatisfied write_event helper used by other send_* functions)
are unrelated to this commit.
2026-07-26 21:23:04 +09:00
..