>From 568a595d9413c1ba6546a961d5a0f24c245c656a Mon Sep 17 00:00:00 2001
From: Carlos R. Mafra <[email protected]>
Date: Wed, 2 Sep 2009 17:18:05 +0200
Subject: [PATCH] Unshade window when clicking on its appicon.

If a window is currently shaded and the user double
clicks its appicon, it continues to be shaded. Fix this.

Inspired-by: 
http://git.altlinux.org/people/raorn/packages/WindowMaker.git?p=WindowMaker.git;a=commit;h=59b844df58f7d15d24ce58679620b9638cf1414e
(but the above patch did not work as expected here, so I modified it)
---
 src/actions.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/actions.c b/src/actions.c
index 5217b2b..143f69d 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -1479,12 +1479,11 @@ void wUnhideApplication(WApplication * wapp, Bool 
miniwindows, Bool bringToCurre
                                if (bringToCurrentWS)
                                        wWindowChangeWorkspace(wlist, 
scr->current_workspace);
                                wlist->flags.hidden = 0;
+
                                if (wlist->frame->workspace == 
scr->current_workspace) {
                                        XMapWindow(dpy, 
wlist->frame->core->window);
-                                       if (miniwindows) {
-                                               wUnshadeWindow(wlist);
-                                               wRaiseFrame(wlist->frame->core);
-                                       }
+                                       wRaiseFrame(wlist->frame->core);
+                                       wUnshadeWindow(wlist);
                                }
                                WMPostNotificationName(WMNChangedState, wlist, 
"hide");
                        } else if (wlist->flags.hidden) {
-- 
1.6.4.2.236.gf324c


-- 
To unsubscribe, send mail to [email protected].

Reply via email to