diff options
Diffstat (limited to 'src/ClientMenu.cc')
-rw-r--r-- | src/ClientMenu.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ClientMenu.cc b/src/ClientMenu.cc index ae35aab..7248883 100644 --- a/src/ClientMenu.cc +++ b/src/ClientMenu.cc | |||
@@ -27,6 +27,7 @@ | |||
27 | #include "Screen.hh" | 27 | #include "Screen.hh" |
28 | #include "Window.hh" | 28 | #include "Window.hh" |
29 | #include "WindowCmd.hh" | 29 | #include "WindowCmd.hh" |
30 | #include <X11/keysym.h> | ||
30 | 31 | ||
31 | #include "FbTk/MenuItem.hh" | 32 | #include "FbTk/MenuItem.hh" |
32 | 33 | ||
@@ -42,7 +43,7 @@ public: | |||
42 | } | 43 | } |
43 | ~ClientMenuItem() { m_client.titleSig().detach(menu()); } | 44 | ~ClientMenuItem() { m_client.titleSig().detach(menu()); } |
44 | 45 | ||
45 | void click(int button, int time) { | 46 | void click(int button, int time, unsigned int mods) { |
46 | FluxboxWindow *fbwin = m_client.fbwindow(); | 47 | FluxboxWindow *fbwin = m_client.fbwindow(); |
47 | if (fbwin == 0) | 48 | if (fbwin == 0) |
48 | return; | 49 | return; |
@@ -53,7 +54,8 @@ public: | |||
53 | 54 | ||
54 | m_client.focus(); | 55 | m_client.focus(); |
55 | fbwin->raise(); | 56 | fbwin->raise(); |
56 | parent->hide(); | 57 | if ((mods & ControlMask) == 0) |
58 | parent->hide(); | ||
57 | } | 59 | } |
58 | 60 | ||
59 | const std::string &label() const { return m_client.title(); } | 61 | const std::string &label() const { return m_client.title(); } |