Alternative fix which is more in line with the original diff, ref. #18

This commit is contained in:
bakkeby 2020-03-22 11:09:30 +01:00
parent f401a51fa8
commit 9344ff61dd

View File

@ -87,16 +87,11 @@ updatesystray(void)
InputOutput, visual, InputOutput, visual,
CWOverrideRedirect|CWBackPixel|CWBorderPixel|CWColormap|CWEventMask, &wa); CWOverrideRedirect|CWBackPixel|CWBorderPixel|CWColormap|CWEventMask, &wa);
#else #else
XSetWindowAttributes wa = { systray->win = XCreateSimpleWindow(dpy, root, x - xpad, m->by + ypad, w, bh, 0, 0, scheme[SchemeSel][ColBg].pixel);
.override_redirect = True, wa.event_mask = ButtonPressMask | ExposureMask;
.background_pixel = scheme[SchemeNorm][ColBg].pixel, wa.override_redirect = True;
.border_pixel = 0, wa.background_pixel = scheme[SchemeNorm][ColBg].pixel;
.colormap = DefaultColormap(dpy, screen), XChangeWindowAttributes(dpy, systray->win, CWEventMask|CWOverrideRedirect|CWBackPixel, &wa);
.event_mask = ButtonPressMask|ExposureMask
};
systray->win = XCreateWindow(dpy, root, x - xpad, m->by + ypad, w, bh, 0, DefaultDepth(dpy, screen),
InputOutput, DefaultVisual(dpy, screen),
CWOverrideRedirect|CWBackPixel|CWBorderPixel|CWColormap|CWEventMask, &wa);
#endif // ALPHA_PATCH #endif // ALPHA_PATCH
XSelectInput(dpy, systray->win, SubstructureNotifyMask); XSelectInput(dpy, systray->win, SubstructureNotifyMask);
XChangeProperty(dpy, systray->win, netatom[NetSystemTrayOrientation], XA_CARDINAL, 32, XChangeProperty(dpy, systray->win, netatom[NetSystemTrayOrientation], XA_CARDINAL, 32,