resizing works and whatnot
This commit is contained in:
parent
38f8155bf5
commit
9e0ae7ecee
2 changed files with 9 additions and 2 deletions
|
@ -134,6 +134,14 @@ public:
|
||||||
static const long event_mask = PropertyChangeMask | FocusChangeMask |
|
static const long event_mask = PropertyChangeMask | FocusChangeMask |
|
||||||
StructureNotifyMask;
|
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
|
//! The number of unmap events to ignore on the window
|
||||||
int ignore_unmaps;
|
int ignore_unmaps;
|
||||||
|
|
||||||
|
|
|
@ -343,8 +343,7 @@ void OBScreen::manageWindow(Window window)
|
||||||
|
|
||||||
// choose the events we want to receive on the CLIENT window
|
// choose the events we want to receive on the CLIENT window
|
||||||
attrib_set.event_mask = OBClient::event_mask;
|
attrib_set.event_mask = OBClient::event_mask;
|
||||||
attrib_set.do_not_propagate_mask = ButtonPressMask | ButtonReleaseMask |
|
attrib_set.do_not_propagate_mask = OBClient::no_propagate_mask;
|
||||||
ButtonMotionMask;
|
|
||||||
XChangeWindowAttributes(otk::OBDisplay::display, window,
|
XChangeWindowAttributes(otk::OBDisplay::display, window,
|
||||||
CWEventMask|CWDontPropagate, &attrib_set);
|
CWEventMask|CWDontPropagate, &attrib_set);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue