17 lines
477 B
Plaintext
17 lines
477 B
Plaintext
--- dwm.c
|
|
+++ dwm.c
|
|
@@ -1215,6 +1334,13 @@ maprequest(XEvent *e)
|
|
static XWindowAttributes wa;
|
|
XMapRequestEvent *ev = &e->xmaprequest;
|
|
|
|
+ Client *i;
|
|
+ if ((i = wintosystrayicon(ev->window))) {
|
|
+ sendevent(i->win, netatom[Xembed], StructureNotifyMask, CurrentTime, XEMBED_WINDOW_ACTIVATE, 0, systray->win, XEMBED_EMBEDDED_VERSION);
|
|
+ resizebarwin(selmon);
|
|
+ updatesystray();
|
|
+ }
|
|
+
|
|
if (!XGetWindowAttributes(dpy, ev->window, &wa))
|
|
return;
|
|
if (wa.override_redirect)
|