X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=dwm.c;h=5f6ffe3d2b65f063c0a37124d17e7cd376ca3628;hb=e3da222c1e3bdd323a920b8e9765af23f19d80a2;hp=05c0199a19b86c04312adec0d9382c8f00c86b8e;hpb=1edf6a7866ebe219bfa81a1b289fa5c8d0cdfbee;p=dwm.git diff --git a/dwm.c b/dwm.c index 05c0199..5f6ffe3 100644 --- a/dwm.c +++ b/dwm.c @@ -60,7 +60,7 @@ enum { ColBorder, ColFG, ColBG, ColLast }; /* color */ enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ enum { WMProtocols, WMDelete, WMName, WMState, WMLast };/* default atoms */ enum { ClkLtSymbol = 64, ClkStatusText, ClkWinTitle, - ClkClientWin, ClkRootWin, ClkLast }; /* clicks */ + ClkClientWin, ClkLast }; /* clicks */ /* typedefs */ typedef unsigned int uint; @@ -312,7 +312,7 @@ buttonpress(XEvent *e) { Client *c; XButtonPressedEvent *ev = &e->xbutton; - click = ClkRootWin; + click = ClkLast; if(ev->window == barwin) { i = x = 0; do @@ -1379,7 +1379,7 @@ setup(void) { PropModeReplace, (unsigned char *) netatom, NetLast); /* select for events */ - wa.event_mask = SubstructureRedirectMask|SubstructureNotifyMask|ButtonPressMask + wa.event_mask = SubstructureRedirectMask|SubstructureNotifyMask |EnterWindowMask|LeaveWindowMask|StructureNotifyMask; XChangeWindowAttributes(dpy, root, CWEventMask|CWCursor, &wa); XSelectInput(dpy, root, wa.event_mask);