]> Dogcows Code - chaz/openbox/commitdiff
fix #2670 (hilight first entry in menus) and respect keepBorder setting when removing...
authorMikael Magnusson <mikachu@comhem.se>
Thu, 20 Apr 2006 18:36:23 +0000 (18:36 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Thu, 20 Apr 2006 18:36:23 +0000 (18:36 +0000)
openbox/client.c
openbox/menu.c

index 930f3ee4d174571bd5e2576383133dd66a6b6a14..583f0615009a4ba0ac489ea1cd883bef424f8cf4 100644 (file)
@@ -1228,7 +1228,7 @@ void client_setup_decor_and_functions(ObClient *self)
                    (self->mwmhints.decorations & OB_MWM_DECOR_TITLE)))
                 /* if the mwm hints request no handle or title, then all
                    decorations are disabled */
-                self->decorations = 0;
+                self->decorations = config_theme_keepborder ? OB_FRAME_DECOR_BORDER : 0;
         }
     }
 
index d4e444182dfee20370f4cda0c74e67849d335995..a969da8365d05a55e229dac72d71f0437ff2703c 100644 (file)
@@ -315,6 +315,8 @@ void menu_show(gchar *name, gint x, gint y, ObClient *client)
     }
     if (!menu_frame_show(frame, NULL))
         menu_frame_free(frame);
+    else if (frame->entries)
+        menu_frame_select_next(frame);
 }
 
 static ObMenuEntry* menu_entry_new(ObMenu *menu, ObMenuEntryType type, gint id)
This page took 0.025905 seconds and 4 git commands to generate.