X11: Fix fullscreen toggle
authorAndre Esteve <andreesteve@gmail.com>
Sat, 28 Apr 2018 21:13:17 +0000 (14:13 -0700)
committerAndre Esteve <andreesteve@gmail.com>
Sun, 6 May 2018 01:24:23 +0000 (18:24 -0700)
commitab0bc2a7f54637469e4891c392ede6719e3814c3
treeead2f742f88e74a3aaa3d0ffc04df3143925534c
parent7eb12bb028b3322deadd468dc6e0870e197cbf19
X11: Fix fullscreen toggle

1. Fix fullscreen toggle for window managers that do not have multimonitor fullscreen extension support
2. Fix current monitor detection
3. Fix calculation of vscreen boundaries when single monitor is being used
4. Fix start up position of window when starting (used to always go to the top left corener, now centered)

Still a problem:

1. Window decorations do not show when going windowed
2. Smart resizing makes i3 really sad :(
3. Moving window across monitors and going fullscreen always maximizes on startup screen (when not using /multimon)
client/X11/xf_client.c
client/X11/xf_monitor.c
client/X11/xf_window.c