changeset 35736:f1a696672425

Remove setting pointless window attribute CWBackPixel. This will be set by XSetWindowBackground() later anyway (and - most likely - to a different color than black).
author ib
date Wed, 23 Jan 2013 14:08:58 +0000
parents 894b2d8a9405
children 1bdc6cea0722
files gui/wm/ws.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/wm/ws.c	Wed Jan 23 12:27:38 2013 +0000
+++ b/gui/wm/ws.c	Wed Jan 23 14:08:58 2013 +0000
@@ -827,7 +827,6 @@
     win->AtomsProtocols[2] = win->AtomRolle;
 /* --- */
 
-    win->WindowAttrib.background_pixel = BlackPixel(wsDisplay, wsScreen);
     win->WindowAttrib.border_pixel     = WhitePixel(wsDisplay, wsScreen);
     win->WindowAttrib.colormap   = XCreateColormap(wsDisplay, wsRootWin, win->VisualInfo.visual, AllocNone);
     win->WindowAttrib.event_mask = StructureNotifyMask | FocusChangeMask |
@@ -848,7 +847,7 @@
     if (p & wsOverredirect)
         win->WindowAttrib.override_redirect = True;
 
-    win->WindowMask = CWBackPixel | CWBorderPixel |
+    win->WindowMask = CWBorderPixel |
                       CWColormap | CWEventMask | CWCursor |
                       CWOverrideRedirect;