aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-06-28 16:07:16 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-06-28 16:07:16 +0200
commit24497c3cf4d6810d3a69a2d2b412d86b548e4939 (patch)
treefca7d0b729742892e95958862c34ffb6267bcae5
parentfcdc8d0324ab2848e85994d8033e52e6b82e8723 (diff)
downloadjwm-24497c3cf4d6810d3a69a2d2b412d86b548e4939.tar.gz
Unshade window when middle-clicked in taskbar
-rw-r--r--src/taskbar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/taskbar.c b/src/taskbar.c
index d86320d..0b9a130 100644
--- a/src/taskbar.c
+++ b/src/taskbar.c
@@ -269,6 +269,8 @@ void ProcessTaskButtonEvent(TrayComponentType *cp, int x, int y, int mask) {
switch(mask) {
case Button2:
MoveMouseToClient(np->client);
+ if(np->client->state.status & STAT_SHADED)
+ UnshadeClient(np->client);
if(np->client->state.status & STAT_ACTIVE
&& np->client == nodes[np->client->state.layer])
break;