X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=sidebyside;f=client.c;h=6f6ed99853e9c4ebfa3bff94d8fc5d66f453b0d8;hb=1d852259526e41ebaad7325ee42c118b1cc12f71;hp=fd91af5d1d0b888339b1436b5552fe456ebe056a;hpb=d9a6a3b5d2e0152d5746723fcd482994602f292e;p=dwm.git diff --git a/client.c b/client.c index fd91af5..6f6ed99 100644 --- a/client.c +++ b/client.c @@ -191,7 +191,7 @@ killclient(Arg *arg) { if(!sel) return; - if(sel->proto & WM_PROTOCOL_DELWIN) + if(sel->proto & PROTODELWIN) sendevent(sel->win, wmatom[WMProtocols], wmatom[WMDelete]); else XKillClient(dpy, sel->win); @@ -230,7 +230,7 @@ manage(Window w, XWindowAttributes *wa) XGetTransientForHint(dpy, c->win, &trans); twa.override_redirect = 1; twa.background_pixmap = ParentRelative; - twa.event_mask = ExposureMask; + twa.event_mask = ExposureMask | EnterWindowMask; c->title = XCreateWindow(dpy, root, c->tx, c->ty, c->tw, c->th, 0, DefaultDepth(dpy, screen), CopyFromParent,