JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
spectrwm.git
12 years agoFix mouse and keyboard binds to work regardless of caps/numlock state.
Reginald Kennedy [Wed, 5 Sep 2012 15:12:05 +0000 (23:12 +0800)]
Fix mouse and keyboard binds to work regardless of caps/numlock state.

12 years agoFix possible segfault when a floater receives a configurerequest.
Reginald Kennedy [Wed, 5 Sep 2012 14:47:31 +0000 (22:47 +0800)]
Fix possible segfault when a floater receives a configurerequest.

12 years agoplug some memory leaks.
David Hill [Wed, 29 Aug 2012 15:35:40 +0000 (11:35 -0400)]
plug some memory leaks.

12 years agoChange bar_ext from 'unsigned char' to 'char'.
Reginald Kennedy [Wed, 29 Aug 2012 03:00:19 +0000 (11:00 +0800)]
Change bar_ext from 'unsigned char' to 'char'.

Change a couple warning messages.

12 years agoFix segfault when mouse enters/clicks an area outside region bounds.
Reginald Kennedy [Mon, 27 Aug 2012 10:22:51 +0000 (18:22 +0800)]
Fix segfault when mouse enters/clicks an area outside region bounds.

12 years agoAdd missing prototype in swm_hack.c.
Reginald Kennedy [Wed, 29 Aug 2012 00:35:50 +0000 (08:35 +0800)]
Add missing prototype in swm_hack.c.

Remove stray end of line space.

12 years agoMERGE_MEMBERS is unused.
David Hill [Tue, 28 Aug 2012 23:50:38 +0000 (19:50 -0400)]
MERGE_MEMBERS is unused.

12 years agosysconf returns long
David Hill [Tue, 28 Aug 2012 23:50:01 +0000 (19:50 -0400)]
sysconf returns long

12 years agoadd -Wmissing-prototypes
David Hill [Tue, 28 Aug 2012 23:46:51 +0000 (19:46 -0400)]
add -Wmissing-prototypes

12 years agoclean -Wshadow
David Hill [Tue, 28 Aug 2012 23:46:31 +0000 (19:46 -0400)]
clean -Wshadow

12 years agoadd remaining missing prototypes
David Hill [Tue, 28 Aug 2012 23:42:33 +0000 (19:42 -0400)]
add remaining missing prototypes

12 years agoprint_win_geom is SWM_DEBUG only
David Hill [Tue, 28 Aug 2012 23:20:23 +0000 (19:20 -0400)]
print_win_geom is SWM_DEBUG only

12 years agoadd missing spawn_ prototypes
David Hill [Tue, 28 Aug 2012 23:15:53 +0000 (19:15 -0400)]
add missing spawn_ prototypes

12 years agoadd missing prototypes
David Hill [Tue, 28 Aug 2012 21:04:52 +0000 (17:04 -0400)]
add missing prototypes

12 years agoPrepare for release 2.0.2.
Marco Peereboom [Mon, 27 Aug 2012 16:13:10 +0000 (11:13 -0500)]
Prepare for release 2.0.2.

12 years agoFix scan_xrandr to fallback when a scan results in no new regions.
Reginald Kennedy [Mon, 27 Aug 2012 15:45:03 +0000 (23:45 +0800)]
Fix scan_xrandr to fallback when a scan results in no new regions.

12 years agocouple more const's
David Hill [Mon, 27 Aug 2012 14:46:07 +0000 (10:46 -0400)]
couple more const's

12 years agosprinkle some const
David Hill [Mon, 27 Aug 2012 13:40:49 +0000 (09:40 -0400)]
sprinkle some const

12 years agoAdd tilde ~ expansion to autorun command in the config.
Reginald Kennedy [Mon, 27 Aug 2012 12:33:00 +0000 (20:33 +0800)]
Add tilde ~ expansion to autorun command in the config.

12 years agoPrepare for release 2.0.1.
Marco Peereboom [Sun, 26 Aug 2012 13:11:22 +0000 (08:11 -0500)]
Prepare for release 2.0.1.

12 years agoRemove setquirk error; just ignore when attempting to set quirk to NONE.
Reginald Kennedy [Sun, 26 Aug 2012 12:39:47 +0000 (20:39 +0800)]
Remove setquirk error; just ignore when attempting to set quirk to NONE.

12 years agoFix use of free'd memory.
Reginald Kennedy [Sun, 26 Aug 2012 12:10:30 +0000 (20:10 +0800)]
Fix use of free'd memory.

Fix memory leak.

Submitted by: Campbell Barton (ideasman42)

12 years agoAdd support for Xcursor.
Reginald Kennedy [Sun, 26 Aug 2012 10:53:45 +0000 (18:53 +0800)]
Add support for Xcursor.

12 years agoFix 'focus_mode = default' to ignore pointer position on startup.
Reginald Kennedy [Sun, 26 Aug 2012 11:09:42 +0000 (19:09 +0800)]
Fix 'focus_mode = default' to ignore pointer position on startup.

12 years agoFix issue when switching to a workspace in fullscreen layout (max_stack).
Reginald Kennedy [Fri, 24 Aug 2012 17:23:32 +0000 (01:23 +0800)]
Fix issue when switching to a workspace in fullscreen layout (max_stack).

12 years agoFix stacking of transients and new windows in max_stack mode.
Reginald Kennedy [Fri, 24 Aug 2012 15:33:15 +0000 (23:33 +0800)]
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.

12 years agoFix focus issue when a window is manipulated via EWMH.
Reginald Kennedy [Thu, 23 Aug 2012 20:43:46 +0000 (04:43 +0800)]
Fix focus issue when a window is manipulated via EWMH.

Fix issues when in unmapnotify.

Improve debug output for PropertyNotify events.

12 years agoFix keyboard move and resize operation delay.
Reginald Kennedy [Thu, 23 Aug 2012 00:29:23 +0000 (08:29 +0800)]
Fix keyboard move and resize operation delay.

Fix debug mode segfault in unmapnotify.

12 years agoPrepare for release 2.0.0.
Marco Peereboom [Wed, 22 Aug 2012 20:29:37 +0000 (15:29 -0500)]
Prepare for release 2.0.0.

12 years agoFix uninitialized variable warning.
Reginald Kennedy [Wed, 22 Aug 2012 19:36:11 +0000 (03:36 +0800)]
Fix uninitialized variable warning.

12 years agoFix follow mode window unmap focus issue.
Reginald Kennedy [Wed, 22 Aug 2012 19:29:03 +0000 (03:29 +0800)]
Fix follow mode window unmap focus issue.

12 years agoFix manual focus mode not allowing empty regions to be clicked.
Reginald Kennedy [Wed, 22 Aug 2012 18:16:22 +0000 (02:16 +0800)]
Fix manual focus mode not allowing empty regions to be clicked.

Improve debug output for ButtonPress event.

12 years agoFix new windows not always being handled in a prompt fashion.
Reginald Kennedy [Wed, 22 Aug 2012 16:02:48 +0000 (00:02 +0800)]
Fix new windows not always being handled in a prompt fashion.

12 years agoFix switchws issue when swapping with an empty workspace.
Reginald Kennedy [Wed, 22 Aug 2012 15:50:06 +0000 (23:50 +0800)]
Fix switchws issue when swapping with an empty workspace.

Fix screen switching issue when switching to a screen with an empty ws.

Improve root_to_region by adding check flags for pointer, focus, etc.

When moving mouse pointer to a region with an empty ws, focus on root.

Select EnterNotify events on root for moving mouse to an empty region.

12 years agoTake input focus into consideration when determining active region.
Reginald Kennedy [Wed, 22 Aug 2012 13:35:33 +0000 (21:35 +0800)]
Take input focus into consideration when determining active region.

Change screen_next and screen_prev to no longer warp mouse pointer.

12 years agoFix focus when transient windows get unmapped, but not destroyed.
Reginald Kennedy [Wed, 22 Aug 2012 11:14:00 +0000 (19:14 +0800)]
Fix focus when transient windows get unmapped, but not destroyed.

Cleanup some logical operations.

Improve debug output for ConfigureNotify events.

12 years agoFix follow_cursor focus mode and rename option value to 'focus'.
Reginald Kennedy [Tue, 21 Aug 2012 18:24:09 +0000 (02:24 +0800)]
Fix follow_cursor focus mode and rename option value to 'focus'.
Note that previous value of 'focus_cursor' is still valid.

12 years agoFix focus issue when swapping visible workspaces.
Reginald Kennedy [Tue, 21 Aug 2012 17:23:28 +0000 (01:23 +0800)]
Fix focus issue when swapping visible workspaces.

Fix move window to workspace operation.

Rename update_iconic function to set_swm_iconic.

Cleanup propertynotify function.

12 years agoFix unmapnotify to update the win mapping and iconic state.
Reginald Kennedy [Mon, 20 Aug 2012 22:53:45 +0000 (06:53 +0800)]
Fix unmapnotify to update the win mapping and iconic state.

Improve set_win_state debug.

Remove commented global variable.

12 years agoFix focus on iconify.
Reginald Kennedy [Mon, 20 Aug 2012 18:17:01 +0000 (02:17 +0800)]
Fix focus on iconify.

Remove some double blank lines.

12 years agoSilence the -Wconditional-uninitialized warning with clang.
Reginald Kennedy [Mon, 20 Aug 2012 18:02:41 +0000 (02:02 +0800)]
Silence the -Wconditional-uninitialized warning with clang.

12 years agoIn Linux Makefile, only set CC when it isn't already set.
Reginald Kennedy [Mon, 20 Aug 2012 17:18:47 +0000 (01:18 +0800)]
In Linux Makefile, only set CC when it isn't already set.

Fix some uninitialized warnings.

12 years agoFix switchws to unfocus the focused win before operating on ws.
Reginald Kennedy [Mon, 20 Aug 2012 16:40:55 +0000 (00:40 +0800)]
Fix switchws to unfocus the focused win before operating on ws.

In unmanage_window, do not change focus.

Add more member initializations in workspace.

Add new focus_pending member to workspace.

Fix destroynotify to correctly set focus.

In propertynotify when state has a new value, check the state.

12 years agoAdd WM_HINT_INPUT compatibility macro for old xcb-util versions.
Reginald Kennedy [Mon, 20 Aug 2012 14:34:55 +0000 (22:34 +0800)]
Add WM_HINT_INPUT compatibility macro for old xcb-util versions.

Fix switchws to set focus immediately when swapping visible workspaces.

12 years agoAdd border with unfocused color for all windows in manage_window.
Reginald Kennedy [Sun, 19 Aug 2012 20:58:12 +0000 (04:58 +0800)]
Add border with unfocused color for all windows in manage_window.

12 years agoReplace map_window_raised with map_window function.
Reginald Kennedy [Sun, 19 Aug 2012 23:51:00 +0000 (07:51 +0800)]
Replace map_window_raised with map_window function.

Rename get_iconic to get_swm_iconic

Add new xcb_timestamp_t parameter to client_msg.

Add debug output to client_msg.

Remove unfocus_all since no longer needed.

Fix focus_win to correctly set focus on window.

Time must be specified in ClientMessage WM_TAKE_FOCUS.

Track window mapped state.

Change focus function to only set workspace focus; need to call
focus_win separately.

Fix focus_win function to correctly set window focus.

Add FocusOut debug output.

Add debug message to client_msg.

Add timestamp parameter to client_msg.
When sending the client message WM_TAKE_FOCUS, the time must not be
XCB_TIME_CURRENT.

Check window state before unmapping.

Track X11 timestamps for use in focus_win.

Handle iconify on property notify.

12 years agoUnmap after map in switchws.
Reginald Kennedy [Mon, 20 Aug 2012 13:17:45 +0000 (21:17 +0800)]
Unmap after map in switchws.

12 years agoConvert SWM_ARG_ID_FOCUSCUR into a function called get_region_focus.
Reginald Kennedy [Mon, 20 Aug 2012 11:42:49 +0000 (19:42 +0800)]
Convert SWM_ARG_ID_FOCUSCUR into a function called get_region_focus.

12 years agoFix focus_win function to correctly set window focus.
Reginald Kennedy [Sun, 19 Aug 2012 23:51:00 +0000 (07:51 +0800)]
Fix focus_win function to correctly set window focus.
Time must be specified in ClientMessage WM_TAKE_FOCUS; not
XCB_TIME_CURRENT.

Add timestamp parameter to client_msg.

Track X11 timestamps for use in focus_win.

Track window mapped state.

Check window state before unmapping.

Change focus function to only set workspace focus; need to call
focus_win separately.

Add debug output for FocusOut event.

Replace map_window_raised with map_window function.

Rename get_iconic to get_swm_iconic

Add debug output to client_msg.

Remove unfocus_all since no longer needed.

(Un)iconify in propertynotify.

12 years agoFix stack_config by adding a focus_flush().
Reginald Kennedy [Fri, 17 Aug 2012 00:07:59 +0000 (08:07 +0800)]
Fix stack_config by adding a focus_flush().

12 years agoFix search_resp by adding xcb_flush.
Reginald Kennedy [Thu, 16 Aug 2012 23:05:17 +0000 (07:05 +0800)]
Fix search_resp by adding xcb_flush.

12 years agoChange manual focus mode; focus is set with mouse button 1.
Reginald Kennedy [Thu, 16 Aug 2012 22:27:02 +0000 (06:27 +0800)]
Change manual focus mode; focus is set with mouse button 1.

Grab only the mouse buttons for the binds and button 1 for focus.

Fix focus_win to not unfocus the same window twice.

Add more debug messages to unfocus_win.

Change Xlib macro to XCB.

Change unmanage_window to not focus on root.

Rename focus_magic to get_focus_magic.

Rename focus_prev to get_focus_prev and make it return the win to focus.

12 years agoFix focus_win to call unfocus_win when appropriate.
Reginald Kennedy [Thu, 16 Aug 2012 10:27:55 +0000 (18:27 +0800)]
Fix focus_win to call unfocus_win when appropriate.

Change grabkeys() to grab in synchronous mode.

12 years agoFix grabbuttons.
Reginald Kennedy [Wed, 15 Aug 2012 14:40:24 +0000 (22:40 +0800)]
Fix grabbuttons.

12 years agoFix mouse button grab.
Reginald Kennedy [Wed, 15 Aug 2012 13:51:37 +0000 (21:51 +0800)]
Fix mouse button grab.

12 years agoAdd new 'manual' focus_mode.
Reginald Kennedy [Mon, 13 Aug 2012 21:41:39 +0000 (05:41 +0800)]
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.

12 years agoFix floating window positioning.
Reginald Kennedy [Sun, 12 Aug 2012 19:39:43 +0000 (03:39 +0800)]
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.

12 years agoFix xcb_create_window() call in workaround().
Reginald Kennedy [Sun, 12 Aug 2012 15:48:31 +0000 (23:48 +0800)]
Fix xcb_create_window() call in workaround().

12 years agoFix xcb_poly_fill_rectangle() call in bar_print().
Reginald Kennedy [Sun, 12 Aug 2012 15:21:40 +0000 (23:21 +0800)]
Fix xcb_poly_fill_rectangle() call in bar_print().

12 years agoFix window configuration issue affecting programs such as mplayer.
Reginald Kennedy [Tue, 7 Aug 2012 16:57:35 +0000 (00:57 +0800)]
Fix window configuration issue affecting programs such as mplayer.

Improve debug output for ConfigureRequest events.

12 years agoOnly try to set focus on a window once it is known to be mapped.
Reginald Kennedy [Sun, 5 Aug 2012 17:01:05 +0000 (01:01 +0800)]
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.

12 years agoFix segfault when a ConfigureRequest is sent to a window in a hidden ws.
Reginald Kennedy [Sat, 4 Aug 2012 08:08:12 +0000 (16:08 +0800)]
Fix segfault when a ConfigureRequest is sent to a window in a hidden ws.

12 years agoFix numlock issues.
Reginald Kennedy [Sat, 4 Aug 2012 05:29:18 +0000 (13:29 +0800)]
Fix numlock issues.

Convert some constants to XCB

12 years agofix cygwin, from MrD <mrw@eandem.co.uk>
Marco Peereboom [Thu, 2 Aug 2012 17:48:26 +0000 (12:48 -0500)]
fix cygwin, from MrD <mrw@eandem.co.uk>

12 years agoremove beta
Marco Peereboom [Tue, 31 Jul 2012 19:11:01 +0000 (14:11 -0500)]
remove beta

12 years agoPrepare for release 1.2.0.
Marco Peereboom [Tue, 31 Jul 2012 19:06:54 +0000 (14:06 -0500)]
Prepare for release 1.2.0.

12 years agoadd BETA for now
Marco Peereboom [Tue, 31 Jul 2012 19:06:46 +0000 (14:06 -0500)]
add BETA for now

12 years agoDefault font backend should be font set.
Reginald Kennedy [Tue, 31 Jul 2012 18:14:42 +0000 (02:14 +0800)]
Default font backend should be font set.

12 years agoImplement bar_font check to choose between Xft and font set backend.
Reginald Kennedy [Tue, 31 Jul 2012 16:33:39 +0000 (00:33 +0800)]
Implement bar_font check to choose between Xft and font set backend.

Improve bar_font man page entry.

Man page cleanup.

12 years agoAdd new shutdown_cleanup function to eliminate duplicate code.
Reginald Kennedy [Sat, 28 Jul 2012 18:37:00 +0000 (02:37 +0800)]
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.

12 years agoFix get_win_name to try _NET_WM_NAME (UTF-8) before WM_NAME.
Reginald Kennedy [Sat, 28 Jul 2012 18:09:01 +0000 (02:09 +0800)]
Fix get_win_name to try _NET_WM_NAME (UTF-8) before WM_NAME.

12 years agoUse legacy XFontSet when user specifies an X core font for bar_font.
Reginald Kennedy [Fri, 27 Jul 2012 02:59:36 +0000 (10:59 +0800)]
Use legacy XFontSet when user specifies an X core font for bar_font.

12 years agofix some more unused param warnings
Marco Peereboom [Fri, 27 Jul 2012 23:04:24 +0000 (18:04 -0500)]
fix some more unused param warnings

12 years agoshut a bunch of warnings up
Marco Peereboom [Fri, 27 Jul 2012 22:50:18 +0000 (17:50 -0500)]
shut a bunch of warnings up

12 years agoEliminate more shadows.
Reginald Kennedy [Fri, 27 Jul 2012 21:16:04 +0000 (05:16 +0800)]
Eliminate more shadows.

12 years agoFix check_conn.
Reginald Kennedy [Fri, 27 Jul 2012 20:48:27 +0000 (04:48 +0800)]
Fix check_conn.

Resolve declaration shadows.

12 years agoRename a variable.
Reginald Kennedy [Fri, 27 Jul 2012 20:27:56 +0000 (04:27 +0800)]
Rename a variable.

12 years agofix typo
David Hill [Fri, 27 Jul 2012 20:24:54 +0000 (16:24 -0400)]
fix typo

12 years agoFix check_conn to work with older libxcb versions.
Reginald Kennedy [Fri, 27 Jul 2012 15:01:17 +0000 (23:01 +0800)]
Fix check_conn to work with older libxcb versions.

12 years agoAdd another check before attempting to use RandR.
Reginald Kennedy [Fri, 27 Jul 2012 02:56:38 +0000 (10:56 +0800)]
Add another check before attempting to use RandR.

12 years agoDon't query the RandR extension unless it is present.
Reginald Kennedy [Fri, 27 Jul 2012 00:02:47 +0000 (08:02 +0800)]
Don't query the RandR extension unless it is present.

12 years agoAdd a check_conn() function for debugging purposes.
Reginald Kennedy [Thu, 26 Jul 2012 23:38:47 +0000 (07:38 +0800)]
Add a check_conn() function for debugging purposes.

12 years agoAdd variable for debug purposes.
Reginald Kennedy [Thu, 26 Jul 2012 15:26:36 +0000 (23:26 +0800)]
Add variable for debug purposes.

12 years agoCheck return value of get_screen.
Reginald Kennedy [Thu, 26 Jul 2012 11:23:28 +0000 (19:23 +0800)]
Check return value of get_screen.

12 years agoOnly get xrandr extension data if xrandr is supported.
Reginald Kennedy [Wed, 25 Jul 2012 22:58:23 +0000 (06:58 +0800)]
Only get xrandr extension data if xrandr is supported.

12 years agoGet actual LOGIN_NAME_MAX value from sysconf.
Reginald Kennedy [Wed, 25 Jul 2012 22:45:40 +0000 (06:45 +0800)]
Get actual LOGIN_NAME_MAX value from sysconf.

12 years agoFix bar 'random' class:instance bar output.
Reginald Kennedy [Tue, 24 Jul 2012 01:20:42 +0000 (09:20 +0800)]
Fix bar 'random' class:instance bar output.
Actual result pointer was being set to the window struct and then
immediately freed causing unpredictable results.

12 years agoEliminate PSC (path separator char) macro.
Reginald Kennedy [Mon, 23 Jul 2012 19:24:54 +0000 (03:24 +0800)]
Eliminate PSC (path separator char) macro.

12 years agoAdd tilde (~) expansion to bar_action and program[] config options.
Reginald Kennedy [Mon, 23 Jul 2012 19:15:41 +0000 (03:15 +0800)]
Add tilde (~) expansion to bar_action and program[] config options.
(based on xombrero expand_tilde function, reworked to be like strdup)

12 years agoNew debug output for FocusIn and LeaveNotify.
Reginald Kennedy [Mon, 23 Jul 2012 18:51:06 +0000 (02:51 +0800)]
New debug output for FocusIn and LeaveNotify.

Consolidate function prototypes.

12 years agoFix user bar_font not being applied to dmenu.
Reginald Kennedy [Sun, 22 Jul 2012 10:08:39 +0000 (18:08 +0800)]
Fix user bar_font not being applied to dmenu.

12 years agoUse a more generalized check for xcb-util < 0.3.8
Reginald Kennedy [Sat, 21 Jul 2012 19:54:17 +0000 (03:54 +0800)]
Use a more generalized check for xcb-util < 0.3.8

12 years agoRemove unneeded variables and some whitespace.
Reginald Kennedy [Fri, 20 Jul 2012 21:57:26 +0000 (05:57 +0800)]
Remove unneeded variables and some whitespace.

12 years agouse _icccm_ in the function name to stay current
David Hill [Fri, 20 Jul 2012 21:53:03 +0000 (17:53 -0400)]
use _icccm_ in the function name to stay current

12 years agoAdd myself to the copyright
David Hill [Fri, 20 Jul 2012 21:46:36 +0000 (17:46 -0400)]
Add myself to the copyright

12 years agoanother potential memleak
David Hill [Fri, 20 Jul 2012 21:44:47 +0000 (17:44 -0400)]
another potential memleak

12 years agowe don't do anything with xcb_grab_pointer_reply, so get rid of it.
David Hill [Fri, 20 Jul 2012 20:40:40 +0000 (16:40 -0400)]
we don't do anything with xcb_grab_pointer_reply, so get rid of it.

12 years agoplug memleak
David Hill [Fri, 20 Jul 2012 20:32:57 +0000 (16:32 -0400)]
plug memleak

12 years agomove out of the loop.
David Hill [Fri, 20 Jul 2012 20:03:27 +0000 (16:03 -0400)]
move out of the loop.

12 years agoplug some more mem leaks.
David Hill [Fri, 20 Jul 2012 19:15:26 +0000 (15:15 -0400)]
plug some more mem leaks.