]> code.delx.au - spectrwm/commit
Improve the bind[] option to accept pointer buttons.
authorReginald Kennedy <rk@rejii.com>
Fri, 13 Mar 2015 14:09:27 +0000 (22:09 +0800)
committerReginald Kennedy <rk@rejii.com>
Fri, 22 May 2015 00:41:30 +0000 (08:41 +0800)
commit42bccafc30073c1428d63b93d5db8b749491c8d4
tree20ad9068b71391556d0ab255fa29fa31f2794963
parent5aee442940fa67ccb0cdeeb805d987c3a4b0d7c4
Improve the bind[] option to accept pointer buttons.
Buttons are specified as Button<n> (case sensitive) where n is 1 to 255.

Example:
bind[move] = MOD+Button8

Existing pointer actions are now available for bind[]:
focus - Focus window/region under pointer.
move - Move window with pointer while binding is pressed.
resize - Resize window with pointer while binding is pressed.
resize_centered - Same as resize but keep window centered.

Defaults:
bind[focus] = ANYMOD+REPLAY+Button1
bind[move] = MOD+Button1
bind[resize] = MOD+Button3
bind[resize_centered] = MOD+Shift+Button3

Button binds can be unbound the same as key binds:

Example:
bind[] = MOD+Button1 # unbind default move binding.

Add new special bind arguments:
ANYMOD
Binds all modifier combinations not handled by another binding.

REPLAY
Allows other programs to receive press/release events for bind.
Unavailable for move, resize and resize_centered.
linux/tree.h
spectrwm.1
spectrwm.c