X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fmenuframe.h;h=daac34d2d2803860be63baa8094a23eba106b8f0;hb=3167fc223ea82851ae954b348a5ff1c0ce6b6d79;hp=069759721e0c0b8a437156d2afe9dc69f3d10464;hpb=040d344a89f40487de8a1920e0aaeccd93a6a995;p=chaz%2Fopenbox diff --git a/openbox/menuframe.h b/openbox/menuframe.h index 06975972..daac34d2 100644 --- a/openbox/menuframe.h +++ b/openbox/menuframe.h @@ -38,7 +38,7 @@ extern GList *menu_frame_visible; struct _ObMenuFrame { /* stuff to be an ObWindow */ - Window_InternalType type; + ObWindow obwin; Window window; struct _ObMenu *menu; @@ -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;