]> Dogcows Code - chaz/openbox/commitdiff
maybe i should have tried opening a submenu too
authorMikael Magnusson <mikachu@comhem.se>
Wed, 14 Sep 2005 17:40:47 +0000 (17:40 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Wed, 14 Sep 2005 17:40:47 +0000 (17:40 +0000)
openbox/menu.c
openbox/menuframe.c

index 33a70b54d8c62a61768cd0e82484ddafbdaf9565..3db8e822556ed4e5c66046224064750180f02991 100644 (file)
@@ -306,7 +306,6 @@ void menu_show(gchar *name, gint x, gint y, ObClient *client)
     else
         menu_frame_move(frame,
                         x - ob_rr_theme->bwidth, y - ob_rr_theme->bwidth);
-    frame->monitor = 0;
     for (i = 0; i < screen_num_monitors; ++i) {
         Rect *a = screen_physical_area_monitor(i);
         if (RECT_CONTAINS(*a, frame->area.x, frame->area.y)) {
index 43d4058522566ffdb5161aae0483829bead425ad..1362d9632182d967bf1f0bd7b112291ba94bfc2a 100644 (file)
@@ -605,6 +605,7 @@ gboolean menu_frame_show(ObMenuFrame *self, ObMenuFrame *parent)
     }
 
     if (parent) {
+        self->monitor = parent->monitor;
         if (parent->child)
             menu_frame_hide(parent->child);
         parent->child = self;
This page took 0.024794 seconds and 4 git commands to generate.