winit-sonoma-fix/src/platform/linux
Joe Wilm 150d2706f9 Fix x11 Window::get_position wrong values (#386)
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.
2018-01-27 14:26:13 +01:00
..
wayland Implement set_maximized, set_fullscreen and set_decorations for wayland (#383) 2018-01-13 06:38:12 +01:00
x11 Fix x11 Window::get_position wrong values (#386) 2018-01-27 14:26:13 +01:00
dlopen.rs Move api module into platform::linux 2017-03-04 09:09:09 +01:00
mod.rs Implement set_maximized, set_fullscreen and set_decorations for wayland (#383) 2018-01-13 06:38:12 +01:00