diff options
| author | arg@10ksloc.org <unknown> | 2006-08-02 11:28:27 +0200 | 
|---|---|---|
| committer | arg@10ksloc.org <unknown> | 2006-08-02 11:28:27 +0200 | 
| commit | 1d852259526e41ebaad7325ee42c118b1cc12f71 (patch) | |
| tree | 9d9992c1595caf5e9d190dd404c091437677362c | |
| parent | 3af6434085aee75bd90e22aee95419dc0ae0b969 (diff) | |
| download | dwm-1d852259526e41ebaad7325ee42c118b1cc12f71.tar.gz | |
implemented focus on enterwindow on titlebars
| -rw-r--r-- | client.c | 2 | ||||
| -rw-r--r-- | event.c | 2 | 
2 files changed, 2 insertions, 2 deletions
| @@ -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, @@ -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; | 
