Commit graph

8 commits

Author SHA1 Message Date
Reginald Kennedy
ebb72d68f2 Fix check_conn.
Resolve declaration shadows.
2012-07-28 04:48:27 +08:00
Reginald Kennedy
c7532ca6f4 Fix parse_rgb() 8-bit to 16-bit color conversion
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.
2012-07-21 06:00:02 +08:00
Reginald Kennedy
99a8c34790 Fix setting of window property strings to use actual number of
elements rather than char array size.

ok marco
2012-02-13 23:32:31 +08:00
Marco Peereboom
8eb6cfee63 kill cvs tags 2011-10-25 15:54:39 -05:00
marco
7e7e905867 shut clang up here too and some more white spaces 2011-09-19 22:01:00 -05:00
Ryan McBride
8d74b4359e An ugly fix for the recent LD_PRELOAD bug.
ok marco
2011-06-03 22:51:54 +00:00
Ryan McBride
bbb499e87a Let scrotwm adjust the font size on xterms as it squishes them in tiling
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.
2009-02-07 19:49:58 +00:00
Ryan McBride
6d08df4744 Add support for passing variables up to X11 via window properties; done by
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.
2009-01-24 17:57:26 +00:00