Function/field for distinguishing if a widget is using global/local coordinates. #3

Merged
IoI_xD merged 2 commits from coords into master 2026-01-05 10:25:58 +09:00
Owner

I'll let the comment for the getter function explain why this is necessary.

Reports whether a widget reports global or local coordinates upon GetXY/SetXY. Anything with a parent reports local, and most backends report global coordinates being supported for top level windows, but some (Wayland) do not.

As far as I'm concerned Wayland compositors are not even expected to store the window's global position, let alone expose it. The closest that exists for this is a KDE-specific protocol, but it doesn't seem to be accessible via Wayland protocols, only via KWin scripts.

If you don't want to merge this then I could do some workarounds for things that would assume it (i.e. have it so windows cannot exist outside of the top level; this would cause submenus to start at 0,0 of the window).

I'll let the comment for the getter function explain why this is necessary. > Reports whether a widget reports global or local coordinates upon GetXY/SetXY. Anything with a parent reports local, and most backends report global coordinates being supported for top level windows, but some (Wayland) do not. As far as I'm concerned Wayland compositors are not even expected to store the window's global position, let alone expose it. The closest that exists for this is a KDE-specific protocol, but it doesn't seem to be accessible via Wayland protocols, only via KWin scripts. If you don't want to merge this then I could do some workarounds for things that would assume it (i.e. have it so windows cannot exist outside of the top level; this would cause submenus to start at 0,0 of the window).
IoI_xD merged commit d3751c0bf9 into master 2026-01-05 10:25:58 +09:00
Sign in to join this conversation.
No reviewers
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
pyrite-dev/milsko!3
No description provided.