graham@tcom.stc.co.uk (Graham Bardsley) (12/07/90)
I guess this subject has been covered before but how do I create an application whose only window is an override-redirect window which covers the whole screen and has a different colormap to the one which the window manager uses? Does this sound familiar, I suppose xlock is an example of such an application. When I run xlock under tvtwm, when the window is mapped, tvtwm re-installs its own colormap. If I tweek xlock to reset the colormap whenever it gets a ColormapNotify event, you get the application fighting the window manager to maintain its own colormap. Unless I've missed something, the ICCCM says nothing about this class of applications, so is this a matter that needs clearing up? Confused. Graham -- -- Graham Bardsley,STC Telecoms,Oakleigh Road South,New Southgate, London, N11 1HB ..{uunet,mcsun}!ukc!stc!graham <graham@tcom.stc.co.uk> Tel: +44 81 945 3799
naughton@wind.Eng.Sun.COM (Patrick Naughton) (12/08/90)
In article <1990Dec7.113139.10325@tcom.stc.co.uk>, graham@tcom.stc.co.uk (Graham Bardsley) writes: |> |> I guess this subject has been covered before but how do I create an application |> whose only window is an override-redirect window which covers the whole screen |> and has a different colormap to the one which the window manager uses? Does this |> sound familiar, I suppose xlock is an example of such an application. When I run |> xlock under tvtwm, when the window is mapped, tvtwm re-installs its own |> colormap. If I tweek xlock to reset the colormap whenever it gets a |> ColormapNotify event, you get the application fighting the window manager to |> maintain its own colormap. Unless I've missed something, the ICCCM says |> nothing about this class of applications, so is this a matter that needs |> clearing up? XLock no longer fights with window managers... it simply allocates a small number of shareable colors out of the default colormap. As it turns out, there was no real solution offered by the ICCCM since xlock does not have a top-level non-override-redirect window on which to set the WM_COLORMAP_WINDOWS property. -Patrick -- ______________________________________________________________________ Patrick J. Naughton ARPA: naughton@sun.com Sun Microsystems, Inc. AT&T: (415) 336 - 1080