Commit graph

21 commits

Author SHA1 Message Date
Reginald Kennedy
24edfadf80 Keep -g greatness.
Resolves #251
2019-05-22 22:17:14 +08:00
David Hill
a0c595fde4 Enable xinput2 on OpenBSD 2019-05-22 11:35:14 +08:00
Reginald Kennedy
1ed5783be7 Fix some styling. 2018-09-07 11:16:49 +08:00
Reginald Kennedy
2c745681f7 Trim some fat from swm_hack.
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.
2018-09-07 11:16:27 +08:00
Reginald Kennedy
a3b566b69b Cleanup libswmhack.so. 2015-05-21 03:30:53 +08:00
Andreas Eriksson
1fbe5348a3 Change libswmhack.so to use RTLD_NEXT functionality when _GNU_SOURCE is defined, and add some error handling. 2015-05-21 03:22:24 +08:00
Reginald Kennedy
d8a7afac8a Improve consistency of warning flags between makefiles.
Change default CC to cc.

Change symlinks to be relative.

Eliminate warnings.
2013-06-15 20:37:18 +08:00
Reginald Kennedy
b686cb58ae Add missing prototype in swm_hack.c.
Remove stray end of line space.
2012-08-29 08:35:50 +08:00
Reginald Kennedy
8b3d816a64 Fix stacking of transients and new windows in max_stack mode.
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.
2012-08-24 23:33:18 +08:00
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
Marco Peereboom
ba542eb493 remove ggdb3 2012-06-23 10:00:47 -05: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 Peereboom
9debc3f2ad add fpic 2011-10-25 15:19:50 -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
Marco Peereboom
58e67eb7f2 Make makefiles work just like ports; this way we can just make install
over a pkg :-)
2009-10-02 19:23:48 +00:00
Marco Peereboom
de776ba84d Fix stupid lib install location, from sthen 2009-09-26 16:40:08 +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