diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-27 04:59:39 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-27 04:59:39 -0500 |
| commit | d409936faae594df7854b5b42ff707315ca33086 (patch) | |
| tree | 076561a69981d0aa0a79a1653676397b2d55ec7e /openbox/menuframe.h | |
| parent | de2d970ce1bff99781066336495eef79355cec50 (diff) | |
get rid of copying the rrappearances for each menu frame, except for the one that is actually useful
Diffstat (limited to 'openbox/menuframe.h')
| -rw-r--r-- | openbox/menuframe.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/openbox/menuframe.h b/openbox/menuframe.h index 06975972..1b1dcc70 100644 --- a/openbox/menuframe.h +++ b/openbox/menuframe.h @@ -71,7 +71,9 @@ struct _ObMenuFrame gint monitor; /* monitor on which to show the menu in xinerama */ - RrAppearance *a_title; + /* We make a copy of this for each menu, so that we don't have to re-render + the background of the entire menu each time we render an item inside it. + */ RrAppearance *a_items; gboolean got_press; /* don't allow a KeyRelease event to run things in the @@ -94,22 +96,6 @@ struct _ObMenuEntryFrame Window icon; Window text; Window bullet; - - RrAppearance *a_normal; - RrAppearance *a_selected; - RrAppearance *a_disabled; - RrAppearance *a_disabled_selected; - - RrAppearance *a_icon; - RrAppearance *a_mask; - RrAppearance *a_bullet_normal; - RrAppearance *a_bullet_selected; - RrAppearance *a_separator; - RrAppearance *a_text_normal; - RrAppearance *a_text_selected; - RrAppearance *a_text_disabled; - RrAppearance *a_text_disabled_selected; - RrAppearance *a_text_title; }; extern GHashTable *menu_frame_map; |
