aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/event.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/event.c b/src/event.c
index a1cc943..76a9fff 100644
--- a/src/event.c
+++ b/src/event.c
@@ -1102,7 +1102,10 @@ void DispatchBorderButtonEvent(const XButtonEvent *event, ClientNode *np) {
&& abs(event->time - lastClickTime) <= doubleClickSpeed
&& abs(event->x - lastX) <= doubleClickDelta
&& abs(event->y - lastY) <= doubleClickDelta) {
- MaximizeClient(np);
+ if(np->state.status & STAT_SHADED)
+ UnshadeClient(np);
+ else
+ ShadeClient(np);
doubleClickActive = 0;
} else {
if(MoveClient(np, event->x, event->y)) {