mirror of git://git.suckless.org/dwm
implemented focus on enterwindow on titlebars
This commit is contained in:
parent
3af6434085
commit
1d85225952
2
client.c
2
client.c
|
@ -230,7 +230,7 @@ manage(Window w, XWindowAttributes *wa)
|
||||||
XGetTransientForHint(dpy, c->win, &trans);
|
XGetTransientForHint(dpy, c->win, &trans);
|
||||||
twa.override_redirect = 1;
|
twa.override_redirect = 1;
|
||||||
twa.background_pixmap = ParentRelative;
|
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,
|
c->title = XCreateWindow(dpy, root, c->tx, c->ty, c->tw, c->th,
|
||||||
0, DefaultDepth(dpy, screen), CopyFromParent,
|
0, DefaultDepth(dpy, screen), CopyFromParent,
|
||||||
|
|
2
event.c
2
event.c
|
@ -202,7 +202,7 @@ enternotify(XEvent *e)
|
||||||
if(ev->detail == NotifyInferior)
|
if(ev->detail == NotifyInferior)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if((c = getclient(ev->window)))
|
if((c = getclient(ev->window)) || (c = getctitle(ev->window)))
|
||||||
focus(c);
|
focus(c);
|
||||||
else if(ev->window == root)
|
else if(ev->window == root)
|
||||||
issel = True;
|
issel = True;
|
||||||
|
|
Loading…
Reference in New Issue