From 13f7f8ffb273df1dfb6884ebd8642312733ccc51 Mon Sep 17 00:00:00 2001 From: "Enno Boland (tox)" Date: Tue, 1 Feb 2011 20:04:02 +0100 Subject: [PATCH] =?UTF-8?q?Added=20patch=20to=20make=20svkbd=20work=20with?= =?UTF-8?q?=20dwm=20again.=20Thanks=20=C5=81ukasz=20Pankowski=20:)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- svkbd.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/svkbd.c b/svkbd.c index fa685cb..e6c0de3 100644 --- a/svkbd.c +++ b/svkbd.c @@ -309,6 +309,7 @@ void setup(void) { int i; XWMHints *wmh; + XSetWindowAttributes wa; /* init screen */ screen = DefaultScreen(dpy); @@ -331,7 +332,12 @@ setup(void) { for(i = 0; i < LENGTH(keys); i++) keys[i].pressed = 0; - win = XCreateSimpleWindow(dpy, root, wx, wy, ww, wh, 0, dc.norm[ColFG], dc.norm[ColBG]); + wa.override_redirect = True; + wa.border_pixel = dc.norm[ColFG]; + wa.background_pixel = dc.norm[ColBG]; + win = XCreateWindow(dpy, root, wx, wy, ww, wh, 0, + CopyFromParent, CopyFromParent, CopyFromParent, + CWOverrideRedirect | CWBorderPixel | CWBackingPixel, &wa); XSelectInput(dpy, win, StructureNotifyMask|ButtonReleaseMask| ButtonPressMask|ExposureMask|LeaveWindowMask); wmh = XAllocWMHints();