]> Dogcows Code - chaz/openbox/commitdiff
resizing works and whatnot
authorDana Jansens <danakj@orodu.net>
Thu, 19 Dec 2002 07:58:54 +0000 (07:58 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 19 Dec 2002 07:58:54 +0000 (07:58 +0000)
src/client.hh
src/screen.cc

index e61ece428dd78d1fc61dbcc43da02ccbc75c09a8..458fe088d4006ee6f5bbf5b54f4059d187a1e478 100644 (file)
@@ -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;
   
index ba058c8fe4029324da52dbe43726a82c18573986..26347539a5d4abbbb3daed5b40be910ff99db191 100644 (file)
@@ -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);
 
This page took 0.024376 seconds and 4 git commands to generate.