Add support for _NET_WM_SYNC_REQUEST during interactive resizing on Linux #1

Open
opened 2025-12-04 16:27:26 +01:00 by tdoerr · 0 comments
Owner

The goal of basic synchronization is limited to coordinating redraws during interactive resizing. A client indicates that it is willing to participate in basic synchronization by listing _NET_WM_SYNC_REQUEST in the WM_PROTOCOLS property of the client window and storing the XID of a XSync counter in the property _NET_WM_SYNC_REQUEST_COUNTER. This counter is known as the basic frame counter.
Before resizing a window, the window manager sends a _NET_WM_SYNC_REQUEST message to the client window containing a value that the application stores in the basic frame counter when it is done handling the ConfigureNotify event resulting from the resize. This allows the window manager to know that it can move on to the next step of resizing without getting ahead of the client. If the window manager is a compositing manager it may also choose to freeze redrawing of the window until it sees the change in counter value, so that the resized window frame and window are drawn as a single unit.

Source

> The goal of basic synchronization is limited to coordinating redraws during interactive resizing. A client indicates that it is willing to participate in basic synchronization by listing _NET_WM_SYNC_REQUEST in the WM_PROTOCOLS property of the client window and storing the XID of a XSync counter in the property _NET_WM_SYNC_REQUEST_COUNTER. This counter is known as the basic frame counter. > Before resizing a window, the window manager sends a _NET_WM_SYNC_REQUEST message to the client window containing a value that the application stores in the basic frame counter when it is done handling the ConfigureNotify event resulting from the resize. This allows the window manager to know that it can move on to the next step of resizing without getting ahead of the client. If the window manager is a compositing manager it may also choose to freeze redrawing of the window until it sees the change in counter value, so that the resized window frame and window are drawn as a single unit. [Source](https://fishsoup.net/misc/wm-spec-synchronization.html)
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tdoerr/lumyn#1
No description provided.