tAdded patch to make svkbd work with dwm again. Thanks Łukasz Pankowski :) - svkbd - Simple X11 onscreen keyboard.
(HTM) git clone git://r-36.net/svkbd
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 13f7f8ffb273df1dfb6884ebd8642312733ccc51
(DIR) parent 14b64cf4786bec36dfd907b5b5c1409cb42b6ab6
(HTM) Author: Enno Boland (tox) <tox@s01.de>
Date: Tue, 1 Feb 2011 20:04:02 +0100
Added patch to make svkbd work with dwm again. Thanks Łukasz Pankowski :)
Diffstat:
svkbd.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/svkbd.c b/svkbd.c
t@@ -309,6 +309,7 @@ void
setup(void) {
int i;
XWMHints *wmh;
+ XSetWindowAttributes wa;
/* init screen */
screen = DefaultScreen(dpy);
t@@ -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();