]> Dogcows Code - chaz/openbox/commitdiff
catch button presses on the window's frame window, else they end up passing up the...
authorDana Jansens <danakj@orodu.net>
Sun, 8 Sep 2002 01:22:13 +0000 (01:22 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 8 Sep 2002 01:22:13 +0000 (01:22 +0000)
src/Window.cc

index 02783d20a5fea23cd87d7a06a696cf3b40234be9..dcbb5f08afc55654e5c2f1806fd7d6cbaf33670a 100644 (file)
@@ -475,7 +475,13 @@ Window BlackboxWindow::createToplevelWindow(void) {
   attrib_create.background_pixmap = None;
   attrib_create.colormap = screen->getColormap();
   attrib_create.override_redirect = True;
-  attrib_create.event_mask = EnterWindowMask | LeaveWindowMask;
+  attrib_create.event_mask = EnterWindowMask | LeaveWindowMask |
+                             ButtonPress;
+  /*
+    We catch button presses because other wise they get passed down to the
+    root window, which will then cause root menus to show when you click the
+    window's frame.
+  */
 
   return XCreateWindow(blackbox->getXDisplay(), screen->getRootWindow(),
                        0, 0, 1, 1, frame.border_w, screen->getDepth(),
This page took 0.028516 seconds and 4 git commands to generate.