Fix issue with multiple clients having focused border on same tag
It so happens that when two clients are fired up one after the other on
the same tag, they both get a 'focused'-type border. A bisect sequence
showed that the culprit was commit 001f430
. I think that it all boils
down to client_manage just setting tag->client_sel and hoping for
arrange(...) to do the Right Thing (TM). The attached patch uses
focus(...) instead.
This commit is contained in:
parent
89e16fad93
commit
96350151b9
4
client.c
4
client.c
|
@ -262,7 +262,6 @@ void
|
|||
client_manage(Window w, XWindowAttributes *wa, awesome_config *awesomeconf)
|
||||
{
|
||||
int i;
|
||||
Tag *tag;
|
||||
Client *c, *t = NULL;
|
||||
Window trans;
|
||||
Status rettrans;
|
||||
|
@ -364,8 +363,7 @@ client_manage(Window w, XWindowAttributes *wa, awesome_config *awesomeconf)
|
|||
/* some windows require this */
|
||||
XMoveResizeWindow(c->display, c->win, c->x, c->y, c->w, c->h);
|
||||
|
||||
if((tag = get_current_tag(awesomeconf->tags, awesomeconf->ntags)))
|
||||
tag->client_sel = c;
|
||||
focus(c, True, awesomeconf);
|
||||
|
||||
/* rearrange to display new window */
|
||||
arrange(awesomeconf);
|
||||
|
|
Loading…
Reference in New Issue