Browse Source

implemented focus on enterwindow on titlebars

master
arg@10ksloc.org 18 years ago
parent
commit
1d85225952
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      client.c
  2. +1
    -1
      event.c

+ 1
- 1
client.c View File

@ -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,


+ 1
- 1
event.c View File

@ -202,7 +202,7 @@ enternotify(XEvent *e)
if(ev->detail == NotifyInferior)
return;
if((c = getclient(ev->window)))
if((c = getclient(ev->window)) || (c = getctitle(ev->window)))
focus(c);
else if(ev->window == root)
issel = True;


Loading…
Cancel
Save