🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #37770

Colormap changing and gwm...

#37770
From: Scott Blachowicz
Date: Tue, 13 Mar 1990 18:26
28 lines
1741 bytes
Hi-
  I'm running gwm 1.5d on an HP9000/375 with HP-UX 6.5. I'm using HP's
xwcreate program to create a window for use with their Starbase
graphics package(using the "sox11" driver). At any rate, Starbase sets
up a colormap for the X-window that I don't want it to do. After
initialization, I set the window's colormap back to the root-window's
colormap with code that looks like this:

   XGetWindowAttributes (display, graph_child_id, &graph_attr);
   XGetWindowAttributes (display, root_window, &root_attr);
   XSetWindowColormap (display, graph_child_id, root_attr.colormap);
   XFreeColormap (display, graph_attr.colormap);
   XSync (display, 0);

The colormap gets setup OK...I inquire it later and it is then set to
the root colormap. However, gwm will complain about it with messages
like this:
   Gwm X error: X_InstallColormap(0x1495c): no such colormap
It seems gwm isn't recognizing the colormap change. Is there some
magic I need to do to get gwm to recognize a ColormapNotify? or am I
doing things the wrong way?

Thanx,
--
Scott Blachowicz                E-mail:  scott@grlab.UUCP
USPS:  Graphicus                 ..or..  ...!hpubvwa!grlab!scott
       150 Lake Str S, #206     VoicePh: 206/828-4691
       Kirkland, WA USA 98033   FAX:     206/828-4236
Technical Details
Message-ID: <SCOTT.90Mar13132602@grlab.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ns-mx!iowasp!deimos!ux1.cso.uiuc.edu!uwm.edu!rpi!zaphod.mps.ohio-state.edu!usc!ucsd!ucsdhub!hp-sdd!hp-pcd!hplsla!hpubvwa!grlab!scott

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ns-mx!iowasp!deimos!ux1.cso.uiuc.edu!uwm.edu!rpi!zaphod.mps.ohio-state.edu!usc!ucsd!ucsdhub!hp-sdd!hp-pcd!hplsla!hpubvwa!grlab!scott
From: scott@grlab.UUCP (Scott Blachowicz)
Newsgroups: comp.windows.x,comp.sys.hp
Subject: Colormap changing and gwm...
Message-ID: <SCOTT.90Mar13132602@grlab.UUCP>
Date: 13 Mar 90 18:26:02 GMT
Sender: news@grlab.UUCP
Organization: Graphicus, Inc., Kirkland, WA USA
Lines: 28