Reginald Kennedy
18f0dc2ad0
Add focus region bindings 'rg_<n>'
...
Default is M-Keypad_<1-9>
Add move window to region bindings 'mvrg_<n>'
Default is M-S-Keypad_<1-9>
Add invisible input window to each region for handling region focus.
On unfocused regions, set the bar border color to color_unfocus.
Add function to handle MotionNotify events on region input windows.
Fix default focus on (re)start.
Fix region-related function and macro naming.
Names referred to 'screen' instead of 'region'
Rename screen_* bindings to rg_*.
screen_* is now an alias for rg_*; old config files will still work.
Fix screen/region wording in manpage.
Sort setkeybinding calls in setup_keys.
Cleanup redundant calls when setting up the bar.
2012-10-24 22:10:53 +08:00
Reginald Kennedy
f9064bf49a
Kill bar script on an unclean exit.
2012-10-22 11:34:29 +08:00
Reginald Kennedy
3e78a0cd60
Ignore UnmapNotify if from an unmanaged child of a managed window.
2012-10-07 02:29:41 +08:00
Reginald Kennedy
1ddfc76bfe
Fix toggle_bar not working on empty workspaces.
2012-10-04 02:05:33 +08:00
Reginald Kennedy
0bb9612bb2
Fix issue where multiple key actions might be handled simultaneously.
...
Improve debug output for keypress.
2012-09-30 02:18:31 +08:00
Reginald Kennedy
d4e682690a
Fix focus fallback behavior when iconified windows exist in the ws.
2012-09-29 02:24:23 +08:00
Reginald Kennedy
db15c5644f
Add check in focus_win to ignore windows that are unmapped.
...
Alphabetize configopt array.
2012-09-29 02:21:55 +08:00
Reginald Kennedy
c0604ed469
Fix windows not being unmapped on single-monitor fullscreen layout.
...
Fix stdin drain when bar is disabled.
2012-09-26 23:56:16 +08:00
Reginald Kennedy
3855da68fe
Only read external script output when available in the main loop.
...
Rename bar_fmt_print to bar_draw.
Change all bar_update calls to bar_draw, except in main.
Rename bar_update to bar_extra_update.
To clarify, bar_extra_update reads the external bar script output and
redraws the bar if needed; bar_draw only redraws the bar with the
current external bar script output.
2012-09-25 22:57:03 +08:00
Reginald Kennedy
b6d8befdac
Fix bar to correctly handle external script partial output.
2012-09-25 18:28:31 +08:00
Reginald Kennedy
1542089bc8
Add xcb_flush after bar_update in main loop.
2012-09-23 19:18:32 +08:00
Reginald Kennedy
df5c9f4c22
Remove unused global variable.
2012-09-23 18:39:06 +08:00
Reginald Kennedy
d3818f73f1
Change bar_action handling to eliminate the need for bar_delay.
...
Old code called alarm() regularly and checked for input only at certain
times. Now, the file descriptor for reading the text is added to the
select() in the main loop, and so updates are caught immediately and
efficiently.
Patch submitted by Jason Woofenden <jason@jasonwoof.com>
(Note: Minor modifications were made to formatting and a dummy version
of the bar_delay option was added to avoid breaking old conf files.)
2012-09-23 18:37:28 +08:00
Reginald Kennedy
4f08514872
Add new bar_enabled_ws[x] config option.
...
It is now possible to set the default state for bar_toggle_ws.
2012-09-06 20:20:17 +08:00
Reginald Kennedy
3facef6701
Change bar_toggle_ws to enable overall visibility of bars when needed.
2012-09-06 18:59:00 +08:00
Reginald Kennedy
c2a4935a92
Add new key binding: bar_toggle_ws (M-S-b)
...
It is now possible to toggle the status bar on each workspace.
bar_toggle is a 'master switch' to change the visiblity of bars on all
regions.
2012-09-06 18:48:43 +08:00
Reginald Kennedy
4055b75e4a
Fix buttonpress sometimes not releasing the pointer event queue.
2012-09-05 23:51:32 +08:00
Reginald Kennedy
b4ff36a693
Fix mouse and keyboard binds to work regardless of caps/numlock state.
2012-09-05 23:12:08 +08:00
Reginald Kennedy
80375ed70d
Fix possible segfault when a floater receives a configurerequest.
2012-09-05 22:49:57 +08:00
David Hill
56804a6331
plug some memory leaks.
2012-08-29 11:35:40 -04:00
Reginald Kennedy
c646259731
Change bar_ext from 'unsigned char' to 'char'.
...
Change a couple warning messages.
2012-08-29 11:03:29 +08:00
Reginald Kennedy
c02d3f6db8
Fix segfault when mouse enters/clicks an area outside region bounds.
2012-08-29 08:45:59 +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
David Hill
8d6f43bd88
MERGE_MEMBERS is unused.
2012-08-28 19:50:38 -04:00
David Hill
0d5bc34d2b
sysconf returns long
2012-08-28 19:50:01 -04:00
David Hill
3b3c4e31f3
add -Wmissing-prototypes
2012-08-28 19:46:51 -04:00
David Hill
09729fd715
clean -Wshadow
2012-08-28 19:46:31 -04:00
David Hill
eed83a7ee1
add remaining missing prototypes
2012-08-28 19:42:33 -04:00
David Hill
365159febd
print_win_geom is SWM_DEBUG only
2012-08-28 19:20:23 -04:00
David Hill
55ba1e3395
add missing spawn_ prototypes
2012-08-28 19:15:53 -04:00
David Hill
5df53a77cf
add missing prototypes
2012-08-28 17:04:52 -04:00
Marco Peereboom
ba076365a1
Prepare for release 2.0.2.
2012-08-27 11:13:10 -05:00
Reginald Kennedy
77dc1e0928
Fix scan_xrandr to fallback when a scan results in no new regions.
2012-08-27 23:45:03 +08:00
David Hill
80e56a145d
couple more const's
2012-08-27 10:46:07 -04:00
David Hill
024d93cece
sprinkle some const
2012-08-27 09:40:49 -04:00
Reginald Kennedy
2d86bc6b5d
Add tilde ~ expansion to autorun command in the config.
2012-08-27 20:33:00 +08:00
Marco Peereboom
37a60f7273
Prepare for release 2.0.1.
2012-08-26 08:11:22 -05:00
Reginald Kennedy
983382db57
Remove setquirk error; just ignore when attempting to set quirk to NONE.
2012-08-26 20:39:51 +08:00
Reginald Kennedy
a5b560b41f
Fix use of free'd memory.
...
Fix memory leak.
Submitted by: Campbell Barton (ideasman42)
2012-08-26 20:30:10 +08:00
Reginald Kennedy
b2b0c8fcf2
Add support for Xcursor.
2012-08-26 19:21:45 +08:00
Reginald Kennedy
f171ae19f6
Fix 'focus_mode = default' to ignore pointer position on startup.
2012-08-26 19:09:45 +08:00
Reginald Kennedy
a23aaa1549
Fix issue when switching to a workspace in fullscreen layout (max_stack).
2012-08-25 01:30:44 +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
3946872e2b
Fix focus issue when a window is manipulated via EWMH.
...
Fix issues when in unmapnotify.
Improve debug output for PropertyNotify events.
2012-08-24 04:43:50 +08:00
Reginald Kennedy
78972f1414
Fix keyboard move and resize operation delay.
...
Fix debug mode segfault in unmapnotify.
2012-08-23 08:29:41 +08:00
Marco Peereboom
1379273ef0
Prepare for release 2.0.0.
2012-08-22 15:29:37 -05:00
Reginald Kennedy
3050ccac16
Fix uninitialized variable warning.
2012-08-23 03:36:11 +08:00
Reginald Kennedy
f9609966f0
Fix follow mode window unmap focus issue.
2012-08-23 03:29:03 +08:00
Reginald Kennedy
73d7b552f0
Fix manual focus mode not allowing empty regions to be clicked.
...
Improve debug output for ButtonPress event.
2012-08-23 02:16:22 +08:00
Reginald Kennedy
79c64ab736
Fix new windows not always being handled in a prompt fashion.
2012-08-23 00:02:48 +08:00