diff options
author | Michael Jennings <mej@kainx.org> | 2000-05-28 21:28:31 +0000 |
---|---|---|
committer | Michael Jennings <mej@kainx.org> | 2000-05-28 21:28:31 +0000 |
commit | 47d87f02b0f492719caf07cab013434d164f18c8 (patch) | |
tree | 6925df5bf742edeaf6102fcab6c7eee2b1c74015 /src/menus.c | |
parent | e64307644dec3440bae9020b8d922457389541cc (diff) | |
download | eterm-47d87f02b0f492719caf07cab013434d164f18c8.tar.gz |
Sun May 28 14:45:03 PDT 2000 Michael Jennings <mej@eterm.org>
My attempt to track down the strange X errors have revealed that a
pixmap given to me by Imlib2 is getting freed somehow behind my back.
Probably because this part of Imlib2 hadn't been tested before Eterm
was converted. =P
It doesn't seem to happen in XFree86 4.0; I'm wondering if XFree 4 is
smart enough to detect double-frees of old XID's and just ignore them?
Well, I'm going to have to add some debugging code to Imlib2 and see
if I can track down where it's freeing my pixmaps. But I have some
errands to run first, so I'm going to commit this for now. It
shouldn't actually change any functionality.
SVN revision: 2722
Diffstat (limited to 'src/menus.c')
-rw-r--r-- | src/menus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/menus.c b/src/menus.c index a529f2a..292eee6 100644 --- a/src/menus.c +++ b/src/menus.c @@ -127,9 +127,9 @@ menu_init(void) return; } gcvalue.foreground = PixColors[menuTopShadowColor]; - topShadowGC = XCreateGC(Xdisplay, menu_list->menus[0]->win, GCForeground, &gcvalue); + topShadowGC = X_CREATE_GC(GCForeground, &gcvalue); gcvalue.foreground = PixColors[menuBottomShadowColor]; - botShadowGC = XCreateGC(Xdisplay, menu_list->menus[0]->win, GCForeground, &gcvalue); + botShadowGC = X_CREATE_GC(GCForeground, &gcvalue); event_register_dispatcher(menu_dispatch_event, menu_event_init_dispatcher); } @@ -455,7 +455,7 @@ menu_create(char *title) menu->swin = XCreateWindow(Xdisplay, menu->win, 0, 0, 1, 1, 0, Xdepth, InputOutput, CopyFromParent, CWOverrideRedirect | CWSaveUnder | CWBackingStore | CWBorderPixel | CWColormap, &xattr); - menu->gc = XCreateGC(Xdisplay, menu->win, GCForeground, &gcvalue); + menu->gc = X_CREATE_GC(GCForeground, &gcvalue); menuitem_clear_current(menu); return menu; |