mirror of
git://git.suckless.org/svkbd
synced 2025-04-07 09:41:30 +00:00
Added patch to make svkbd work with dwm again. Thanks Łukasz Pankowski :)
This commit is contained in:
parent
14b64cf478
commit
13f7f8ffb2
8
svkbd.c
8
svkbd.c
@ -309,6 +309,7 @@ void
|
|||||||
setup(void) {
|
setup(void) {
|
||||||
int i;
|
int i;
|
||||||
XWMHints *wmh;
|
XWMHints *wmh;
|
||||||
|
XSetWindowAttributes wa;
|
||||||
|
|
||||||
/* init screen */
|
/* init screen */
|
||||||
screen = DefaultScreen(dpy);
|
screen = DefaultScreen(dpy);
|
||||||
@ -331,7 +332,12 @@ setup(void) {
|
|||||||
for(i = 0; i < LENGTH(keys); i++)
|
for(i = 0; i < LENGTH(keys); i++)
|
||||||
keys[i].pressed = 0;
|
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|
|
XSelectInput(dpy, win, StructureNotifyMask|ButtonReleaseMask|
|
||||||
ButtonPressMask|ExposureMask|LeaveWindowMask);
|
ButtonPressMask|ExposureMask|LeaveWindowMask);
|
||||||
wmh = XAllocWMHints();
|
wmh = XAllocWMHints();
|
||||||
|
Loading…
Reference in New Issue
Block a user