fvwm-workers@fvwm.org wrote:
> On Tue, Mar 19, 2002 at 03:26:24PM +0000, Tim Phipps wrote:
> > Nearly, you have to specify a colormap and a border pixel when creating
> > non-root visual windows, and the gcs used to fill the borders have to be
> > created from an fvwm visual window. I've attached a patch from todays
> > snapshot but it may be out of date already.
> 
> Hm, I'm not sure I understand this well enough.  Can you remake
> the patch with the next snapshot please?

Yur tiz
Index: fvwm/add_window.c
===================================================================
RCS file: /u/phippst/share/cvsroot/fvwm/fvwm/add_window.c,v
retrieving revision 1.35
diff -u -r1.35 add_window.c
--- fvwm/add_window.c   2002/03/20 14:07:02     1.35
+++ fvwm/add_window.c   2002/03/20 14:07:33
@@ -1173,10 +1173,13 @@
                pattributes->background_pixmap = None;
        }
 
-       *pvaluemask |= CWBackingStore | CWCursor | CWSaveUnder;
+       *pvaluemask |= CWBackingStore | CWCursor | CWSaveUnder
+               | CWBorderPixel | CWColormap;
        pattributes->backing_store = NotUseful;
        pattributes->cursor = Scr.FvwmCursors[CRS_DEFAULT];
        pattributes->save_under = False;
+       pattributes->border_pixel = 0;
+       pattributes->colormap = Pcmap;
 
        return;
 }
@@ -1407,10 +1410,13 @@
        {
                return;
        }
-       valuemask = CWEventMask | CWBackingStore | CWSaveUnder | CWWinGravity;
+       valuemask = CWEventMask | CWBackingStore | CWSaveUnder | CWWinGravity
+               | CWBorderPixel | CWColormap;
        attributes.event_mask = XEVMASK_BORDERW;
        attributes.backing_store = NotUseful;
        attributes.save_under = False;
+       attributes.border_pixel = 0;
+       attributes.colormap = Pcmap;
        /* Just dump the windows any old place and let frame_setup_window take
         * care of the mess */
        for (i = 0; i < 4; i++)
Index: fvwm/borders.c
===================================================================
RCS file: /u/phippst/share/cvsroot/fvwm/fvwm/borders.c,v
retrieving revision 1.23
diff -u -r1.23 borders.c
--- fvwm/borders.c      2002/03/20 14:07:02     1.23
+++ fvwm/borders.c      2002/03/20 14:07:33
@@ -1426,7 +1426,7 @@
        {
                XGCValues xgcv;
 
-               tile_gc = fvwmlib_XCreateGC(dpy, FW_W_FRAME(fw), 0, &xgcv);
+               tile_gc = fvwmlib_XCreateGC(dpy, Scr.SizeWindow, 0, &xgcv);
        }
        ret_gcs->tile = tile_gc;
        /* setup the tile gc*/

Reply via email to