Path: utzoo!attcan!uunet!snorkelwacker!paperboy!yee From: yee@osf.org (Michael K. Yee) Newsgroups: comp.windows.x Subject: Re: Colormaps and Motif Message-ID: Date: 30 Jul 90 17:42:47 GMT References: <4bbac4a1.20b6d@apollo.HP.COM> <765@auto-trol.UUCP> Sender: news@OSF.ORG Organization: Open Software Foundation Lines: 171 In-reply-to: mike@wang.com's message of 24 Jul 90 14:09:56 GMT In article mike@wang.com (Mike Sullivan) writes: > marbru@auto-trol.UUCP (Martin Brunecky) writes: > > >In article <4bbac4a1.20b6d@apollo.HP.COM> scott@scam.Berkeley.EDU writes: > >> > >>I am having trouble setting the colormap for my motif applications. > >>Is this a known bug, or have people out there been able to > >> accomplish this? > > > ... as far as Motif 1.0.3, there is a bug in mwm; it tries but does NOT > > deal with WM_COLORMAP_WINDOWS property correctly. It only installs the > > proper colormap IF the colormap is set for the SHELL. > > Except for the shell, any windows listed in WM_COLORAMP_WINDOWS property > > are simply ignored. > > I am also having problems w/ colormaps w/ mwm. > > I am trying to use the xloadimage program posted a while > back. It does a lot of mumbling about compressing bitmaps, gets it > down to a 16 color bitmap ( which should be fine for my VGA screen ) > The screen goes technicolor, but my picture still comes up in a > sort of solarized rendition of monochrome. Usually two nasty colors. > > My question is why do I get a technicolor screen, and still not > (APPARENTLY) get the right colormap? > > Has anyone got any patches to Xloadimage that make it do closest match > to the colormap already locked in by Mwm? > The right solution would be to run Mwm in monochrome on your limited color system. Try the following monochrome resource settings: XLoad*background: White XLoad*foreground: Black XTerm*background: Black XTerm*foreground: White XTerm*cursorColor: Black #define MWM_POINTER !#define MWM_NeXT mwm*armColor: white ! ! component appearance resources ! #ifdef MWM_POINTER Mwm*keyboardFocusPolicy: pointer Mwm*buttonBindings: PointerButtonBindings Mwm*passButtons: True !Mwm*focusAutoRaise: True #else ! EXPLICIT mode Mwm*colormapFocusPolicy: explicit Mwm*keyboardFocusPolicy: explicit Mwm*buttonBindings: ExplicitButtonBindings Mwm*startupKeyFocus: False Mwm*deiconifyKeyFocus: True #endif #ifdef MWM_NeXT Mwm*clientDecoration: -resize -border Mwm*matteWidth: 4 #endif ! SETUP the rest of the Mwm resources Mwm*keyBindings: DefaultKeyBindings Mwm*windowMenu: DefaultWindowMenu Mwm*wMenuButtonClick2: False Mwm*wMenuButtonClick: False Mwm*resizeBorderWidth: 7 Mwm*moveThreshold: 3 ! ICON stuff Mwm*iconClick: False Mwm*iconAutoPlace: True Mwm*iconImageMinimum: 16x16 !Mwm*iconDecoration: label image Mwm*iconDecoration: activelabel Mwm*useClientIcon: True !Mwm*iconImage: ~/xlogo.xbm ! FONT stuff Mwm*fontList: variable ! Use smaller fixed font for icons Mwm*icon*fontList: fixed ! MONOCHROME setup Mwm*cleanText: True Mwm*activeBackground: white Mwm*activeForeground: black Mwm*background: white Mwm*foreground: black Mwm*client*activeBackgroundPixmap: 50_foreground Mwm*client*activeTopShadowPixmap: foreground Mwm*client*activeBottomShadowPixmap: background !Mwm*client*background: white !Mwm*client*foreground: black Mwm*client*backgroundPixmap: 75_foreground Mwm*client*topShadowPixmap: foreground Mwm*client*bottomShadowPixmap: background !Mwm*feedback*background: white !Mwm*feedback*foreground: black Mwm*feedback*backgroundPixmap: 50_foreground !Mwm*feedback*topShadowPixmap: 25_foreground !Mwm*feedback*bottomShadowPixmap: background !Mwm*menu*background: white !Mwm*menu*foreground: black Mwm*menu*backgroundPixmap: foreground !Mwm*menu*topShadowPixmap: foreground !Mwm*menu*bottomShadowPixmap: background !Mwm*icon*background: white !Mwm*icon*foreground: black Mwm*icon*activeBackgroundPixmap: 50_foreground Mwm*icon*activeBottomShadowPixmap: foreground Mwm*icon*backgroundPixmap: 75_foreground ! Miscellaneous Resource !Mwm*bitmapDirectory: /users/yee/bitmaps !Mwm*emacs*iconImage: emacs2.xbm !Mwm*xterm*iconImage: xterm.xbm !Mwm*useIconBox: True !Mwm*iconDecoration: label !Mwm*iconbox*selectColor: black !!Mwm*iconbox*XmDrawnButton*highlightColor: Black !Mwm*iconbox*hScrollBar*highlightColor: LightGray !Mwm*iconbox*vScrollBar*highlightColor: LightGray !Mwm*iconbox*vScrollBar*width: 10 !Mwm*iconbox*hScrollBar*height: 10 !Mwm*iconbox*clientDecoration: border #ifdef MWM_NeXT Mwm*Clock*clientDecoration: none Mwm*XLoad*clientDecoration: none Mwm*XClock*clientDecoration: none Mwm*XBiff*clientDecoration: none Mwm*XPostit*clientDecoration: none #else Mwm*Clock*clientDecoration: border Mwm*XLoad*clientDecoration: border Mwm*XClock*clientDecoration: border Mwm*XBiff*clientDecoration: border Mwm*XPostit*clientDecoration: border #endif > I am running SCO unix, X11R3 etc. on a PC386 with 4bit VGA > > -- > ________________________ > / __ \ | Michael J. Sullivan > | \ \ / /\ |\ | / ` | | Wang Laboratories Inc. > | \/ \/ /--\ | \| \__T | | mike@fun.WANG.COM > \________________________/ | "Whence profundity?" > -- = Michael K. Yee =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- = OPEN Software Foundation -- 11 Cambridge Center -- Cambridge, MA 02142 = Phone: 617-621-8831 Email: yee@osf.org, uunet!osf.org!yee = "I can't give you brains, but I can give you a diploma." -- The Wizard of OZ