diff options
Diffstat (limited to 'src/event.c')
-rw-r--r-- | src/event.c | 5 |
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)) { |