Reginald Kennedy
13f103ac8c
Fix user bar_font not being applied to dmenu.
2012-07-22 18:08:39 +08:00
Reginald Kennedy
f3c7ca7092
Use a more generalized check for xcb-util < 0.3.8
2012-07-22 03:54:17 +08:00
Reginald Kennedy
98861f7098
Remove unneeded variables and some whitespace.
2012-07-21 06:00:51 +08:00
David Hill
cd59d61775
use _icccm_ in the function name to stay current
2012-07-21 06:00:04 +08:00
David Hill
1d9926af04
Add myself to the copyright
2012-07-21 06:00:04 +08:00
David Hill
b35de94afa
another potential memleak
2012-07-21 06:00:04 +08:00
David Hill
d8167c261d
we don't do anything with xcb_grab_pointer_reply, so get rid of it.
2012-07-21 06:00:04 +08:00
David Hill
4f722a6f9a
plug memleak
2012-07-21 06:00:04 +08:00
David Hill
ae0c30c83f
move out of the loop.
2012-07-21 06:00:03 +08:00
David Hill
c7eeb62b6f
plug some more mem leaks.
2012-07-21 06:00:03 +08:00
David Hill
1f49d9c7d5
we need to free what is returned from xcb_key_symbols_get_keycode
2012-07-21 06:00:03 +08:00
David Hill
c8e8acff6e
check replies separately
2012-07-21 06:00:03 +08:00
David Hill
972d8078da
plug memleak in find_window
2012-07-21 06:00:03 +08:00
David Hill
018a45a926
plug memory leak in get_win_name
2012-07-21 06:00:03 +08:00
David Hill
a88b31468e
removed unused function
2012-07-21 06:00:03 +08:00
David Hill
8bf14c7ce4
plug memory leak in get_atom_name
2012-07-21 06:00:03 +08:00
David Hill
ced6f98d60
plug memory leak in get_ws_idx
2012-07-21 06:00:03 +08:00
David Hill
3b291e1459
make sure we test the reply to be not NULL too.
2012-07-21 06:00:03 +08:00
Reginald Kennedy
27b329267c
Begin checking the xcb_get_property_reply before using the value.
2012-07-21 06:00:03 +08:00
David Hill
f48e8c0ee9
revert getstate change. made windows disappear.
2012-07-21 06:00:03 +08:00
David Hill
9fa42be8de
in getstate(), we need to fetch type XCB_ATOM_ATOM, not the atom.
2012-07-21 06:00:03 +08:00
Reginald Kennedy
e2ad0e4e41
Use intermediate pointer in getstate().
2012-07-21 06:00:03 +08:00
David Hill
ec833b84b1
apply XftDraw to search_win
2012-07-21 06:00:03 +08:00
Reginald Kennedy
2a8cbd9a9e
Fix bar text vertical positioning.
...
Remove extra vertical padding from bar.
2012-07-21 06:00:03 +08:00
David Hill
ff9956dda8
allow core fonts to load again. this may need more magic.
2012-07-21 06:00:03 +08:00
David Hill
1931c8e6d7
spaces no longer allowed in separating fonts. use only , instead.
...
Makes use able to use fonts with spaces in their names.
2012-07-21 06:00:03 +08:00
Reginald Kennedy
d708e9e9fe
Don't try to setup the bar if it already exists.
2012-07-21 06:00:03 +08:00
Reginald Kennedy
85986408ee
Use the same font on all bars.
...
Don't close font and color each time bar_setup is called.
2012-07-21 06:00:03 +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
2daa570c17
Fix some styling.
2012-07-21 06:00:02 +08:00
David Hill
2505c8c112
use %ld to print longs
2012-07-21 06:00:02 +08:00
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
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