Commit graph

271 commits

Author SHA1 Message Date
Reginald Kennedy
7c89d364d9 Add new 'manual' focus_mode.
Mouse sets focus on window interaction.

Add new focus_flush() function to cleanup code.

Remove do_sync() since it is not needed.
2012-08-15 21:45:22 +08:00
Reginald Kennedy
7921c5dfbb Fix floating window positioning.
Always center unless ANYWHERE quirk is set or window was manually
moved or resized.

Add new load_float_geom() function.

Fix float_toggle to ignore fullscreen windows.

Fix ConfigureRequest events sometimes causing a focus change.

Fix event_drain sometimes not working as expected.

Remove some #if 0 code.
2012-08-13 04:00:52 +08:00
Reginald Kennedy
b3ce153db7 Fix xcb_create_window() call in workaround(). 2012-08-12 23:48:31 +08:00
Reginald Kennedy
f747837804 Fix xcb_poly_fill_rectangle() call in bar_print(). 2012-08-12 23:21:40 +08:00
Reginald Kennedy
5790955458 Fix window configuration issue affecting programs such as mplayer.
Improve debug output for ConfigureRequest events.
2012-08-08 00:57:35 +08:00
Reginald Kennedy
7511a23d8f Only try to set focus on a window once it is known to be mapped.
Cleanup manage_window.

Add _NET_WM_ACTION_ABOVE to _NET_WM_ALLOWED_ACTIONS on floaters.

Focus rework; focus_magic returns the focus window instead of actually
setting it. focus_win must now be called explicitly.

Add more EnterNotify drains and xcb_flushes.

Disable atom name resolving in debug mode.
2012-08-07 00:38:03 +08:00
Reginald Kennedy
24f75da357 Fix segfault when a ConfigureRequest is sent to a window in a hidden ws. 2012-08-04 16:08:16 +08:00
Reginald Kennedy
210af64d21 Fix numlock issues.
Convert some constants to XCB
2012-08-04 13:29:18 +08:00
Marco Peereboom
8e5c5f067b fix cygwin, from MrD <mrw@eandem.co.uk> 2012-08-02 12:48:26 -05:00
Marco Peereboom
46557526ef remove beta 2012-07-31 14:11:01 -05:00
Marco Peereboom
c416503976 add BETA for now 2012-07-31 14:06:46 -05:00
Reginald Kennedy
599608ec70 Default font backend should be font set. 2012-08-01 02:49:20 +08:00
Reginald Kennedy
2ca16c93ed Implement bar_font check to choose between Xft and font set backend.
Improve bar_font man page entry.

Man page cleanup.
2012-08-01 02:48:36 +08:00
Reginald Kennedy
dff29edaba Add new shutdown_cleanup function to eliminate duplicate code.
Remove some commented out code.

Update documentation for bar_font.

Explicitly set pixelsize of 12 to default fonts.
2012-07-31 23:26:30 +08:00
Reginald Kennedy
759e9ab081 Fix get_win_name to try _NET_WM_NAME (UTF-8) before WM_NAME. 2012-07-30 00:44:58 +08:00
Reginald Kennedy
ea7610b577 Use legacy XFontSet when user specifies an X core font for bar_font. 2012-07-30 00:44:38 +08:00
Marco Peereboom
af9577039c fix some more unused param warnings 2012-07-27 18:04:24 -05:00
Marco Peereboom
25360b6172 shut a bunch of warnings up 2012-07-27 17:50:18 -05:00
Reginald Kennedy
9929a1091c Eliminate more shadows. 2012-07-28 05:18:07 +08:00
Reginald Kennedy
ebb72d68f2 Fix check_conn.
Resolve declaration shadows.
2012-07-28 04:48:27 +08:00
Reginald Kennedy
71bfe4db93 Rename a variable. 2012-07-28 04:27:56 +08:00
David Hill
1fa17c86c2 fix typo 2012-07-27 16:24:54 -04:00
Reginald Kennedy
a7ab2b3338 Fix check_conn to work with older libxcb versions. 2012-07-27 23:01:17 +08:00
Reginald Kennedy
859eaac28f Add another check before attempting to use RandR. 2012-07-27 10:56:38 +08:00
Reginald Kennedy
92be9fb26c Don't query the RandR extension unless it is present. 2012-07-27 08:02:47 +08:00
Reginald Kennedy
5e2b9113a9 Add a check_conn() function for debugging purposes. 2012-07-27 07:38:47 +08:00
Reginald Kennedy
ac57a15638 Add variable for debug purposes. 2012-07-26 23:26:36 +08:00
Reginald Kennedy
45236b5c07 Check return value of get_screen. 2012-07-26 19:23:28 +08:00
Reginald Kennedy
a556f4cfa0 Only get xrandr extension data if xrandr is supported. 2012-07-26 06:58:23 +08:00
Reginald Kennedy
cbdd9e7fed Get actual LOGIN_NAME_MAX value from sysconf. 2012-07-26 06:45:40 +08:00
Reginald Kennedy
53586d8b86 Fix bar 'random' class:instance bar output.
Actual result pointer was being set to the window struct and then
immediately freed causing unpredictable results.
2012-07-24 09:20:46 +08:00
Reginald Kennedy
8b505ff30a Eliminate PSC (path separator char) macro. 2012-07-24 03:24:54 +08:00
Reginald Kennedy
413ba7b518 Add tilde (~) expansion to bar_action and program[] config options.
(based on xombrero expand_tilde function, reworked to be like strdup)
2012-07-24 03:17:18 +08:00
Reginald Kennedy
a5985d7974 New debug output for FocusIn and LeaveNotify.
Consolidate function prototypes.
2012-07-24 02:51:08 +08:00
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