mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-26 15:21:29 +11:00
150d2706f9
Some window managers like i3wm will actually nest application windows (like those opened by winit) within other windows to, for example, add decorations. Initially when debugging this method on i3, the x and y positions were always returned as "2". The solution that other xlib abstractions use is to climb up the window hierarchy until just below the root window, and that window must be used to determine the appropriate position. This patch doesn't take into account borders or the window's offset within its parent, but it's much more usable than the original implementation on certain WMs. |
||
---|---|---|
.. | ||
wayland | ||
x11 | ||
dlopen.rs | ||
mod.rs |