projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e29139
)
only execute enabled items
author
Dana Jansens
<danakj@orodu.net>
Thu, 28 Aug 2003 18:34:06 +0000
(18:34 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Thu, 28 Aug 2003 18:34:06 +0000
(18:34 +0000)
openbox/menuframe.c
patch
|
blob
|
history
diff --git
a/openbox/menuframe.c
b/openbox/menuframe.c
index efafe30b3da4b7280788bb4b3c9dcfdeda7a3b0a..56dbc647c48b1702f6f1f8eb1a331780fa56b0c1 100644
(file)
--- a/
openbox/menuframe.c
+++ b/
openbox/menuframe.c
@@
-571,7
+571,9
@@
void menu_entry_frame_show_submenu(ObMenuEntryFrame *self)
void menu_entry_frame_execute(ObMenuEntryFrame *self, gboolean hide)
{
- if (self->entry->type == OB_MENU_ENTRY_TYPE_NORMAL) {
+ if (self->entry->type == OB_MENU_ENTRY_TYPE_NORMAL &&
+ self->entry->data.normal.enabled)
+ {
/* grab all this shizzle, cuz when the menu gets hidden, 'self'
gets freed */
ObMenuEntry *entry = self->entry;