Paste: X11 bug

Author: doublec
Mode: factor
Date: Sat, 18 Apr 2009 03:08:34
Plain Text |
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  1 (X_CreateWindow)
  Serial number of failed request:  30
  Current serial number in output stream:  31

Annotation: maybe caused the bug?

Author: erg
Mode: factor
Date: Sat, 18 Apr 2009 03:20:02
Plain Text |
 IN: x11.windows
 
 : create-window-mask ( -- n )
-    { CWColormap CWEventMask } flags ;
+    { CWBackPixel CWBorderPixel CWColormap CWEventMask } flags ;
 
 : create-colormap ( visinfo -- colormap )
-    [ dpy get root get ] dip XVisualInfo-visual AllocNone
+    dpy get root get rot XVisualInfo-visual AllocNone
     XCreateColormap ;
 
 : event-mask ( -- n )
@@ -29,6 +29,8 @@ IN: x11.windows
 
 : window-attributes ( visinfo -- attributes )
     "XSetWindowAttributes" <c-object>
+    0 over set-XSetWindowAttributes-background_pixel
+    0 over set-XSetWindowAttributes-border_pixel
     [ [ create-colormap ] dip set-XSetWindowAttributes-colormap ] keep
     event-mask over set-XSetWindowAttributes-event_mask ;
 

New Annotation

Summary:
Author:
Mode:
Body: