Add XOpenDisplay intercept to preload atoms.
Looking up/creating atoms when handling XCreateWindow can cause
deadlocks and other unexpected behavior in some applications. Instead,
preload the atoms on XOpenDisplay.
Fix issue in libswmhack that can cause applications to crash.
Fix issue in mouse button handling that could cause a segfault.
Improve focus handling so related windows are raised when appropriate.
Fix ConfigureRequest handling of floating windows in max_stack mode.
Fix issue in startup where managable windows are sometimes not managed.
Fix possible focus issue when changing focus with keyboard bindings.
Add debug output to grab_windows function.
For example, 0xff should convert to 0xffff, not 0xff00.
Fix bar_setup to properly convert the color pixel value to XRenderColor.
Rename swm_screen.c[].color to swm_screen.c[].pixel.
Add new get_ws_idx function.
Use 1 and 0 instead of the Xlib macros 'True' and 'False'.
Fix print_win_geom to not crash when the supplied window is invalid.
Fix windows disappearing on restart.
For now, go back to setting the state iconic in unmap_window.
Add '(void)var;' in functions where var is required but unused.
When using the -Wextra compiler flag, the warning for those variables is
suppressed thereby making it easier to spot warnings that could use our
attention.
Fix type conversion warning in swm_hack.c
Use global atoms where applicable.
mode to keep the terminal width above a certan size (set with 'term_width'
in the config file.
We do this by sending the default font size change keystrokes to the xterm
in question. Because xterm does not accept 'synthetic' keystroke events by
default, and we don't want to force users to enable acceptSendEvents for
security reasons, hook XtAppNextEvent in the LD_PRELOAD hack, and clear
the send_event flag on the events in question. CAVEAT: Only works if xterm
is not setuid/setgid.
hooking XCreateWindow and friends via LD_PRELOAD. Used now to make sure that
windows come up in the workspace they were spawn()'d from, but more soon.
Code to do the nasty borrowed with thanks from Enlightenment.