# HG changeset patch # User Anselm R. Garbe # Date 1169115100 -3600 # Node ID fc5b982778dfba93e2e4856484eb5302428562eb # Parent f05c825db96b57ef9eaf9d8f479b6f62ea0fe441 applied a modified version of Christof Musik's multihead patch (though this is not sure if it works in all cases, have to wait for an ACK by Christof) diff -r f05c825db96b -r fc5b982778df event.c --- a/event.c Wed Jan 17 12:36:29 2007 +0100 +++ b/event.c Thu Jan 18 11:11:40 2007 +0100 @@ -270,8 +270,11 @@ leavenotify(XEvent *e) { XCrossingEvent *ev = &e->xcrossing; - if((ev->window == root) && !ev->same_screen) + if((ev->window == root) && !ev->same_screen) { issel = False; + if(sel) + XSetWindowBorder(dpy, sel->win, dc.norm[ColBorder]); + } } static void