summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-19 07:58:54 +0000
committerDana Jansens <danakj@orodu.net>2002-12-19 07:58:54 +0000
commit9e0ae7ecee94a0cc467d90926428fdc84f9a0339 (patch)
tree81b0553b03c0e1335bca32aa2773274ce964b359 /src
parent38f8155bf50af2a2bf13e8767236dae924abb157 (diff)
resizing works and whatnot
Diffstat (limited to 'src')
-rw-r--r--src/client.hh8
-rw-r--r--src/screen.cc3
2 files changed, 9 insertions, 2 deletions
diff --git a/src/client.hh b/src/client.hh
index e61ece42..458fe088 100644
--- a/src/client.hh
+++ b/src/client.hh
@@ -134,6 +134,14 @@ public:
static const long event_mask = PropertyChangeMask | FocusChangeMask |
StructureNotifyMask;
+ //! The mask of events to not let propogate past the client
+ /*!
+ This makes things like xprop work on the client window, but means we have
+ to explicitly grab clicks that we want.
+ */
+ static const long no_propagate_mask = ButtonPressMask | ButtonReleaseMask |
+ ButtonMotionMask;
+
//! The number of unmap events to ignore on the window
int ignore_unmaps;
diff --git a/src/screen.cc b/src/screen.cc
index ba058c8f..26347539 100644
--- a/src/screen.cc
+++ b/src/screen.cc
@@ -343,8 +343,7 @@ void OBScreen::manageWindow(Window window)
// choose the events we want to receive on the CLIENT window
attrib_set.event_mask = OBClient::event_mask;
- attrib_set.do_not_propagate_mask = ButtonPressMask | ButtonReleaseMask |
- ButtonMotionMask;
+ attrib_set.do_not_propagate_mask = OBClient::no_propagate_mask;
XChangeWindowAttributes(otk::OBDisplay::display, window,
CWEventMask|CWDontPropagate, &attrib_set);