apply latest suckless commit
https://git.suckless.org/dmenu/commit/0fe460dbd469a1d5b6a7140d0e1801935e4a923b.html
This commit is contained in:
parent
683e051106
commit
2956763fae
|
@ -24,7 +24,7 @@ create_window(int x, int y, int w, int h)
|
|||
PointerMotionMask; // we need pointer for selecting entries using the mouse
|
||||
|
||||
// create client
|
||||
win = XCreateWindow(dpy, parentwin, x, y, w, h, borderwidth,
|
||||
win = XCreateWindow(dpy, root, x, y, w, h, borderwidth,
|
||||
depth, InputOutput, visual,
|
||||
CWOverrideRedirect|CWBackPixel|CWBorderPixel|CWColormap|CWEventMask, &swa);
|
||||
|
||||
|
|
1
spmenu.c
1
spmenu.c
|
@ -661,6 +661,7 @@ setupdisplay(void)
|
|||
|
||||
// embed spmenu inside parent window
|
||||
if (embed) {
|
||||
XReparentWindow(dpy, win, parentwin, x, y);
|
||||
XSelectInput(dpy, parentwin, FocusChangeMask | SubstructureNotifyMask);
|
||||
if (XQueryTree(dpy, parentwin, &dw, &w, &dws, &du) && dws) {
|
||||
for (i = 0; i < du && dws[i] != win; ++i)
|
||||
|
|
Loading…
Reference in a new issue