Commit graph

856 commits

Author SHA1 Message Date
David Hill
a3fa984a4a better Xft support. 2012-07-21 06:00:02 +08:00
Reginald Kennedy
c90ce2ecdb Set window state to withdrawn, instead of iconic, when switching ws.
Add more debug messages.
2012-07-21 06:00:02 +08:00
Reginald Kennedy
7829426481 A better fix.
Explicitly set event queue owner to XCB since it is Xlib by default.
Xlib errors are now passed to the XCB event queue!
2012-07-21 06:00:02 +08:00
Reginald Kennedy
6b514cb540 Fix Xlib exiting on error. 2012-07-21 06:00:02 +08:00
Reginald Kennedy
9a6057d006 Oops, bar_font conflicted, renamed bar_font to font in bar_setup.
Add the correct libraries and include to linux Makefile.
2012-07-21 06:00:02 +08:00
Reginald Kennedy
60c97b0934 Remove unneeded bar_fs_height variable.
Rename bar_fs to bar_font.

Remove some whitespace.
2012-07-21 06:00:02 +08:00
David Hill
eaa16b8665 start of Xft. blows up. 2012-07-21 06:00:02 +08:00
Reginald Kennedy
103465407f Fix linux makefile. 2012-07-21 06:00:02 +08:00
Marco Peereboom
e892406f68 dont errx when xcb_query_font_reply fails + spaces 2012-07-21 06:00:02 +08:00
David Hill
d691aa1d13 bring back the Display variable. Will be needed for the font code. 2012-07-21 06:00:02 +08:00
David Hill
b1b60af57d make search_win use the same font as the bar 2012-07-21 06:00:02 +08:00
David Hill
b7605062b2 fix up search_win to use new font code calculations as well. 2012-07-21 06:00:02 +08:00
David Hill
a5f8037d46 a reasonable first attempt to get the bar and bar fonts to look nice.
some calculations may need to be adjusted.
2012-07-21 06:00:02 +08:00
David Hill
aebdf72736 allow bar_font to work again. 2012-07-21 06:00:02 +08:00
Marco Peereboom
0602f711f4 drop some X11 includes, begone Xlib! 2012-07-21 06:00:02 +08:00
Reginald Kennedy
9d10f0db5f Remove an empty line. 2012-07-21 06:00:02 +08:00
Reginald Kennedy
34cac60b9f Fix xrandr epileptic seizure issue. 2012-07-21 06:00:02 +08:00
Reginald Kennedy
fe71db40e0 Fix issue where _NET_ACTIVE_WINDOW is ignored on unmapped, unmanaged
windows. Skype works!

Move atom name query in propertynotify to a separate function.

Rename active_wm() to enable_wm() since the purpose of the function is
to enable X window management.  The error check is now done within the
function. Like before, return 0 on success; 1 on failure.

New debug type: SWM_D_INIT

More type casting.
2012-07-21 06:00:02 +08:00
David Hill
2dfd100cea add a couple more xcb_flush()'s 2012-07-21 05:59:31 +08:00
Reginald Kennedy
b6ee0345e4 Fix a few more -Wextra warnings. 2012-07-21 05:59:31 +08:00
David Hill
4a3fd19a46 cast a few types to strtonum 2012-07-21 05:59:31 +08:00
David Hill
f6733e1aa6 fix some sign compare warnings 2012-07-21 05:59:31 +08:00
David Hill
4289bcfe51 unused defines 2012-07-21 05:59:31 +08:00
David Hill
cee1960075 remove no longer needed includes. 2012-07-21 05:59:31 +08:00
David Hill
d10ca627b4 remove no longer used functions 2012-07-21 05:59:30 +08:00
David Hill
8e474d18ca remove unneeded warnings 2012-07-21 05:59:30 +08:00
David Hill
b6ca75c2a7 prefetch the xcb_randr_id so we don't block later 2012-07-21 05:59:30 +08:00
David Hill
8f2c842365 remove extra lib dependancies from Makefile 2012-07-21 05:59:30 +08:00
David Hill
2a64e76451 remove -lXlib-xcb and -lXtst. Replace with -lX11 and -lxcb.
-lX11 is still needed for keysym stuff.
2012-07-21 05:59:30 +08:00
David Hill
a28e0d1b2f Get rid of XOpenDisplay. Use xcb_connect now! 2012-07-21 05:59:30 +08:00
Reginald Kennedy
f4892b390f Fix startup error by disabling all traces of xlib font sets.
The XCreateFontSet() call was failing.

next step is to eliminate the remaining Xlib calls and get bar fonts to
work as they should.
2012-07-21 05:59:30 +08:00
David Hill
be6a1f8c47 redo checking for an active wm with xcb 2012-07-21 05:59:30 +08:00
David Hill
f9b30c3e1d remove commented out Xlib code 2012-07-21 05:59:30 +08:00
David Hill
4c05d42a78 convert XkbKeycodeToKeysym to xcb 2012-07-21 05:59:30 +08:00
David Hill
404594c487 NoSymbol to XCB_NO_SYMBOL 2012-07-21 05:59:30 +08:00
David Hill
82b752a3ea rename atom variables to begin with a_ 2012-07-21 05:59:30 +08:00
David Hill
6ae31bbc2b use xcb instead of RootWindow 2012-07-21 05:59:30 +08:00
David Hill
9daf16e4b6 move some things into setup_globals() 2012-07-21 05:59:30 +08:00
Reginald Kennedy
e2e555b67e bar_update() on cycle_layout() for the indicator. 2012-07-21 05:59:30 +08:00
Reginald Kennedy
9a58fa26ba Drain EnterNotify in stack() when appropriate. 2012-07-21 05:59:30 +08:00
Reginald Kennedy
52d1ceda13 Add event_drain() and drain EnterNotify where appropriate. 2012-07-21 05:59:30 +08:00
David Hill
52952eaf5e just some minor cleanup. whitespace, cast types, etc 2012-07-21 05:59:30 +08:00
David Hill
a53bbb5e6d get rid of the if 0 code. sick of seeing it. 2012-07-21 05:59:30 +08:00
Reginald Kennedy
e676f5a92b Some OpenBSD styling cleanup.
keyfunc names are now uppercase.

Add -Wextra to Linux Makefile for dev purposes.

Remove unneeded dummykeyfunc().
2012-07-21 05:59:30 +08:00
Reginald Kennedy
b241e108a2 Update freebsd Makefile.
Submitted by Erandir
2012-07-21 05:59:30 +08:00
Reginald Kennedy
ad2fddc520 Add a few more xcb_flush().
Remove whitespace.
2012-07-21 05:59:29 +08:00
Reginald Kennedy
01ab637a1a Add another xcb_flush() into a key position. 2012-07-21 05:59:29 +08:00
David Hill
41a11496e3 undo if 0 the select code. 2012-07-21 05:59:29 +08:00
David Hill
a0b5fd0279 pid is not unsigned 2012-07-21 05:59:29 +08:00
David Hill
69f5175f35 fix window_get_pid(). 2012-07-21 05:59:29 +08:00