]> Dogcows Code - chaz/openbox/blobdiff - openbox/menu.c
invisible resizing areas/grips in the top corners of the window
[chaz/openbox] / openbox / menu.c
index 99043cd52caeca139a0084999e6fab6fc9977a59..c6c3a4a30e476d1eabe2e553fddd560b9594c44b 100644 (file)
@@ -392,7 +392,8 @@ void menu_entry_fire(ObMenuEntry *self, unsigned int button, unsigned int x,
 {
     ObMenu *m;
 
-    if (button > 3) return;
+    /* ignore wheel scrolling */
+    if (button == 4 || button == 5) return;
 
     if (self->action) {
         self->action->data.any.c = self->parent->client;
@@ -582,6 +583,7 @@ void menu_control_keyboard_nav(unsigned int key)
     }
     default:
         ((ObMenu *)menu_visible->data)->hide(menu_visible->data);
+        current_menu = NULL;
     }
     return;
 }
This page took 0.022854 seconds and 4 git commands to generate.