1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-22 14:08:06 +01:00

changed geometry display stuff

fixed colormap windows crash bug
This commit is contained in:
kojima
2000-01-14 16:30:56 +00:00
parent f10d928e0a
commit f2de1c9dcf
20 changed files with 298 additions and 309 deletions

View File

@@ -32,7 +32,7 @@
#include "window.h"
#include "framewin.h"
void
wColormapInstallForWindow(WScreen *scr, WWindow *wwin)
{
@@ -41,6 +41,7 @@ wColormapInstallForWindow(WScreen *scr, WWindow *wwin)
int done = 0;
Window xwin = None;
if (wwin) {
xwin = wwin->client_win;
} else {
@@ -81,7 +82,9 @@ wColormapInstallForWindow(WScreen *scr, WWindow *wwin)
}
if (!done) {
XGetWindowAttributes(dpy, xwin, &attributes);
attributes.colormap = None;
if (xwin != None)
XGetWindowAttributes(dpy, xwin, &attributes);
if (attributes.colormap == None)
attributes.colormap = scr->colormap;