[hackers] [dmenu] set window background_pixel || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Wed, 23 Nov 2011 14:40:53 +0100 (CET)

changeset: 467:f95c84a8e573
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Wed Nov 23 14:40:21 2011 +0100
files: dmenu.c
description:
set window background_pixel


diff -r 56ee9af6dcea -r f95c84a8e573 dmenu.c
--- a/dmenu.c Sat Nov 19 21:31:18 2011 +0100
+++ b/dmenu.c Wed Nov 23 14:40:21 2011 +0100
_AT_@ -575,12 +575,12 @@
 
         /* create menu window */
         swa.override_redirect = True;
- swa.background_pixmap = ParentRelative;
+ swa.background_pixel = normcol[ColBG];
         swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask;
         win = XCreateWindow(dc->dpy, root, x, y, mw, mh, 0,
                             DefaultDepth(dc->dpy, screen), CopyFromParent,
                             DefaultVisual(dc->dpy, screen),
- CWOverrideRedirect | CWBackPixmap | CWEventMask, &swa);
+ CWOverrideRedirect | CWBackPixel | CWEventMask, &swa);
 
         /* open input methods */
         xim = XOpenIM(dc->dpy, NULL, NULL, NULL);
Received on Wed Nov 23 2011 - 14:40:53 CET

This archive was generated by hypermail 2.3.0 : Wed Nov 23 2011 - 14:48:05 CET