]> Dogcows Code - chaz/openbox/blobdiff - src/Window.cc
bindable/disableable root/workspace menus
[chaz/openbox] / 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.02304 seconds and 4 git commands to generate.