diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/events.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/events.c b/src/events.c index 3b53a73b4..44014a378 100644 --- a/src/events.c +++ b/src/events.c @@ -546,10 +546,6 @@ static inline void handleButtonPress(XButtonEvent * ev) { button1Action(c, ev); } - else if(((ev->window != c->window) && (ev->button == Button2) && (state == 0)) || ((ev->button == Button2) && (state == (AltMask | ControlMask)))) - { - clientLower(c); - } else if((win == MYWINDOW_XWINDOW(c->buttons[HIDE_BUTTON]) || (win == MYWINDOW_XWINDOW(c->buttons[CLOSE_BUTTON])) || (win == MYWINDOW_XWINDOW(c->buttons[MAXIMIZE_BUTTON])) || (win == MYWINDOW_XWINDOW(c->buttons[SHADE_BUTTON])) || (win == MYWINDOW_XWINDOW(c->buttons[STICK_BUTTON])))) { clientSetFocus(c, True); @@ -595,6 +591,10 @@ static inline void handleButtonPress(XButtonEvent * ev) /* Let GTK handle this for us. */ } } + else if(((ev->window != c->window) && (ev->button == Button2) && (state == 0)) || ((ev->button == Button2) && (state == (AltMask | ControlMask)))) + { + clientLower(c); + } else if((win == MYWINDOW_XWINDOW(c->corners[CORNER_TOP_LEFT])) && (state == 0)) { edgeButton(c, CORNER_TOP_LEFT, ev); |