aboutsummaryrefslogtreecommitdiff
path: root/src/WinButton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/WinButton.cc')
-rw-r--r--src/WinButton.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/WinButton.cc b/src/WinButton.cc
index e8cf0bd..d64034e 100644
--- a/src/WinButton.cc
+++ b/src/WinButton.cc
@@ -21,6 +21,7 @@
21 21
22#include "WinButton.hh" 22#include "WinButton.hh"
23#include "Window.hh" 23#include "Window.hh"
24#include "WindowCmd.hh"
24#include "Screen.hh" 25#include "Screen.hh"
25#include "WinClient.hh" 26#include "WinClient.hh"
26#include "WinButtonTheme.hh" 27#include "WinButtonTheme.hh"
@@ -32,7 +33,7 @@
32#endif // SHAPE 33#endif // SHAPE
33 34
34 35
35WinButton::WinButton(const FluxboxWindow &listen_to, 36WinButton::WinButton(FluxboxWindow &listen_to,
36 FbTk::ThemeProxy<WinButtonTheme> &theme, 37 FbTk::ThemeProxy<WinButtonTheme> &theme,
37 FbTk::ThemeProxy<WinButtonTheme> &pressed, 38 FbTk::ThemeProxy<WinButtonTheme> &pressed,
38 Type buttontype, const FbTk::FbWindow &parent, 39 Type buttontype, const FbTk::FbWindow &parent,
@@ -55,7 +56,10 @@ void WinButton::exposeEvent(XExposeEvent &event) {
55} 56}
56 57
57void WinButton::buttonReleaseEvent(XButtonEvent &event) { 58void WinButton::buttonReleaseEvent(XButtonEvent &event) {
59 WinClient *old = WindowCmd<void>::client();
60 WindowCmd<void>::setWindow(&m_listen_to);
58 FbTk::Button::buttonReleaseEvent(event); 61 FbTk::Button::buttonReleaseEvent(event);
62 WindowCmd<void>::setClient(old);
59} 63}
60 64
61// when someone else tries to set the background, we may override it 65// when someone else tries to set the background, we may override it