aboutsummaryrefslogtreecommitdiff
path: root/src/Clientmenu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Clientmenu.cc')
-rw-r--r--src/Clientmenu.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Clientmenu.cc b/src/Clientmenu.cc
index c7fe7a9..e63aadc 100644
--- a/src/Clientmenu.cc
+++ b/src/Clientmenu.cc
@@ -38,7 +38,7 @@
38#include "Workspacemenu.hh" 38#include "Workspacemenu.hh"
39 39
40 40
41Clientmenu::Clientmenu(Workspace *ws) : Basemenu(ws->getScreen()), 41Clientmenu::Clientmenu(Workspace &ws) : Basemenu(ws.getScreen()),
42m_wkspc(ws) { 42m_wkspc(ws) {
43 setInternalMenu(); 43 setInternalMenu();
44} 44}
@@ -48,16 +48,16 @@ void Clientmenu::itemSelected(int button, unsigned int index) {
48 if (button > 2) 48 if (button > 2)
49 return; 49 return;
50 //get the window with index of the item we selected 50 //get the window with index of the item we selected
51 FluxboxWindow *win = m_wkspc->getWindow(index); 51 FluxboxWindow *win = m_wkspc.getWindow(index);
52 if (win) { 52 if (win) {
53 if (button == 1) { 53 if (button == 1) {
54 if (! m_wkspc->isCurrent()) 54 if (! m_wkspc.isCurrent())
55 m_wkspc->setCurrent(); 55 m_wkspc.setCurrent();
56 } else if (button == 2) { 56 } else if (button == 2) {
57 if (! m_wkspc->isCurrent()) 57 if (! m_wkspc.isCurrent())
58 win->deiconify(true, false); 58 win->deiconify(true, false);
59 } 59 }
60 m_wkspc->raiseWindow(win); 60 m_wkspc.raiseWindow(win);
61 win->setInputFocus(); 61 win->setInputFocus();
62 } 62 }
63 63