Implement rectangular mouse selection.

Thanks Alexander Sedov <alex0player@gmail.com>!
This commit is contained in:
Christoph Lohmann
2013-02-19 19:08:41 +01:00
parent e5295629cd
commit 3865e9eaaf
2 changed files with 66 additions and 14 deletions

View File

@ -305,3 +305,15 @@ static Key key[] = {
{ XK_F35, XK_NO_MOD, "\033[23;5~", 0, 0, 0},
};
/*
* Selection types' masks.
* Use the same masks as usual.
* Button1Mask is always unset, to make masks match between ButtonPress.
* ButtonRelease and MotionNotify.
* If no match is found, regular selection is used.
*/
static uint selmasks[] = {
[SEL_RECTANGULAR] = Mod1Mask,
};