[MPlayer-cvslog] r35830 - trunk/gui/wm/ws.c
ib
subversion at mplayerhq.hu
Wed Jan 23 15:08:58 CET 2013
Author: ib
Date: Wed Jan 23 15:08:58 2013
New Revision: 35830
Log:
Remove setting pointless window attribute CWBackPixel.
This will be set by XSetWindowBackground() later anyway
(and - most likely - to a different color than black).
Modified:
trunk/gui/wm/ws.c
Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c Wed Jan 23 13:27:38 2013 (r35829)
+++ trunk/gui/wm/ws.c Wed Jan 23 15:08:58 2013 (r35830)
@@ -827,7 +827,6 @@ void wsWindowCreate(wsWindow *win, int x
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 @@ void wsWindowCreate(wsWindow *win, int x
if (p & wsOverredirect)
win->WindowAttrib.override_redirect = True;
- win->WindowMask = CWBackPixel | CWBorderPixel |
+ win->WindowMask = CWBorderPixel |
CWColormap | CWEventMask | CWCursor |
CWOverrideRedirect;
More information about the MPlayer-cvslog
mailing list