Make mouse key used for drag/resize configurable

This makes it possible to define what mouse button key (left|right) to
use for dragging/resizing.
This commit is contained in:
Mikkel Oscar Lyderik 2015-12-11 11:39:24 +01:00
parent fc9908a40a
commit 0aeee6963d
4 changed files with 93 additions and 21 deletions

View file

@ -115,6 +115,8 @@ static void config_defaults(struct sway_config *config) {
list_add(config->modes, config->current_mode);
config->floating_mod = 0;
config->dragging_key = M_LEFT_CLICK;
config->resizing_key = M_RIGHT_CLICK;
config->default_layout = L_NONE;
config->default_orientation = L_NONE;
// Flags