aboutsummaryrefslogtreecommitdiff
path: root/src/FbMenu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbMenu.cc')
-rw-r--r--src/FbMenu.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/FbMenu.cc b/src/FbMenu.cc
index 769241d..5bc3622 100644
--- a/src/FbMenu.cc
+++ b/src/FbMenu.cc
@@ -35,14 +35,11 @@ FbMenu::FbMenu(FbTk::ThemeProxy<FbTk::MenuTheme> &tm,
35 35
36} 36}
37 37
38void FbMenu::show() {
39 WindowCmd<void>::setWindow(s_window);
40 FbTk::Menu::show();
41}
42
43void FbMenu::buttonPressEvent(XButtonEvent &be) { 38void FbMenu::buttonPressEvent(XButtonEvent &be) {
39 WinClient *old = WindowCmd<void>::client();
44 WindowCmd<void>::setWindow(s_window); 40 WindowCmd<void>::setWindow(s_window);
45 FbTk::Menu::buttonPressEvent(be); 41 FbTk::Menu::buttonPressEvent(be);
42 WindowCmd<void>::setClient(old);
46} 43}
47 44
48void FbMenu::buttonReleaseEvent(XButtonEvent &be) { 45void FbMenu::buttonReleaseEvent(XButtonEvent &be) {
@@ -55,13 +52,17 @@ void FbMenu::buttonReleaseEvent(XButtonEvent &be) {
55 screen->getHeadWidth(head), 52 screen->getHeadWidth(head),
56 screen->getHeadHeight(head)); 53 screen->getHeadHeight(head));
57 } 54 }
58 WindowCmd<void>::setWindow(s_window);
59 55
60 // now get on with the show 56 // now get on with the show
57 WinClient *old = WindowCmd<void>::client();
58 WindowCmd<void>::setWindow(s_window);
61 FbTk::Menu::buttonReleaseEvent(be); 59 FbTk::Menu::buttonReleaseEvent(be);
60 WindowCmd<void>::setClient(old);
62} 61}
63 62
64void FbMenu::keyPressEvent(XKeyEvent &ke) { 63void FbMenu::keyPressEvent(XKeyEvent &ke) {
64 WinClient *old = WindowCmd<void>::client();
65 WindowCmd<void>::setWindow(s_window); 65 WindowCmd<void>::setWindow(s_window);
66 FbTk::Menu::keyPressEvent(ke); 66 FbTk::Menu::keyPressEvent(ke);
67 WindowCmd<void>::setClient(old);
67} 68}