aboutsummaryrefslogtreecommitdiff
path: root/src/ClientMenu.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2007-12-18 05:44:17 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2007-12-18 05:44:17 (GMT)
commitc01bd6e9fd98dd0f70ffc1d01df86e73719cd5e0 (patch)
tree7e25c017727402a33fd8e4c851b5bab9e6add568 /src/ClientMenu.cc
parent31df2d8bd618cae590d9b0e76aee11021d4c77d3 (diff)
downloadfluxbox_pavel-c01bd6e9fd98dd0f70ffc1d01df86e73719cd5e0.zip
fluxbox_pavel-c01bd6e9fd98dd0f70ffc1d01df86e73719cd5e0.tar.bz2
holding control will now keep the menu open
Diffstat (limited to 'src/ClientMenu.cc')
-rw-r--r--src/ClientMenu.cc6
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(); }