Toggle fullscreen on all clients
mod+e allows to toggle fullscreen any client, even those who don't
support it themselves
Handle new windows
Windows lose fullscreen state when a new window is created in the same
tag
Same fscreen func for xdg and xwayland
Restore windows after fullscreen
Store position and size of windows before going fullscreen. This is more
efficient than arrange() and also works with floating windows
All the clients keep their original position because arrange() isn't
used after quitting fullscreen
No borders on fullscreen windows
Some code has been borrowed from the smartBorders patch
set up interfaces in same order as sway
This makes it easier to compare WAYLAND_DEBUG logs when troubleshooting.
cleanup function to match dwm
we're not really using the log
this is technically barf too I guess?
only call updatewindowtype for x11 windows
handle NULL return from backend_autocreate
Fixes #44.
add macro for fatal errors
dwm lets the OS do cleanup if the program errors out