From 51e3b17be887a5590d6dee79a15c08e3a570fd69 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 30 Mar 2025 14:14:27 +0000 Subject: [PATCH] Use xdg_output, introduce get_placement_state and placement_state, remove wl_registry --- .../ext-toplevel-placement-v1.xml | 36 +++++++++++-------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/staging/ext-toplevel-placement/ext-toplevel-placement-v1.xml b/staging/ext-toplevel-placement/ext-toplevel-placement-v1.xml index c705097..f633bdc 100644 --- a/staging/ext-toplevel-placement/ext-toplevel-placement-v1.xml +++ b/staging/ext-toplevel-placement/ext-toplevel-placement-v1.xml @@ -70,7 +70,7 @@ This interface allows a privileged client to suggest an initial placement position for its associated xdg_toplevel window, specified using absolute logical - coordinates relative to a specific wl_output. + coordinates relative to a specific xdg_output. Access to create and use this interface is subject to compositor policy. @@ -87,7 +87,7 @@ Suggests an initial placement position (x, y) for the associated xdg_toplevel. The coordinates are in logical pixels, relative to the top-left corner - of the specified wl_output's logical area. + of the specified xdg_output's logical area. This request serves as a hint to the compositor. The compositor MAY ignore this hint entirely or modify the outcome based on its state or policies. @@ -98,7 +98,7 @@ Compositors are unlikely to substantially alter placement based on suggestions sent after the window is already mapped and positioned. - + @@ -118,21 +118,29 @@ Standard xdg_toplevel.configure events remain the primary source for ongoing size, state, and potentially position updates. - + + + + Requests the compositor to send the current placement state, including + the output and logical coordinates where the toplevel is currently placed. + + + + + + This event provides the current output and logical position where + the compositor has placed the window. It is sent in response to a + `get_placement_state` request. + + + + + + - - - - bind the ext_toplevel_placement_manager_v1 global - - - - - - \ No newline at end of file