From 47d87f02b0f492719caf07cab013434d164f18c8 Mon Sep 17 00:00:00 2001 From: Michael Jennings Date: Sun, 28 May 2000 21:28:31 +0000 Subject: Sun May 28 14:45:03 PDT 2000 Michael Jennings 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 --- src/menus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/menus.c') 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; -- cgit v1.2.1