use get_client_bywin in manage()
This commit is contained in:
parent
1080180320
commit
cffeb9a22c
5
client.c
5
client.c
|
@ -432,9 +432,8 @@ manage(Display *disp, Window w, XWindowAttributes *wa, awesome_config *awesomeco
|
||||||
grabbuttons(c, False, True, awesomeconf->modkey, awesomeconf->numlockmask);
|
grabbuttons(c, False, True, awesomeconf->modkey, awesomeconf->numlockmask);
|
||||||
updatetitle(c);
|
updatetitle(c);
|
||||||
move_client_to_screen(c, awesomeconf, False);
|
move_client_to_screen(c, awesomeconf, False);
|
||||||
if((rettrans = XGetTransientForHint(disp, w, &trans) == Success))
|
if((rettrans = XGetTransientForHint(disp, w, &trans) == Success)
|
||||||
for(t = *awesomeconf->clients; t && t->win != trans; t = t->next);
|
&& (t = get_client_bywin(awesomeconf->clients, trans)))
|
||||||
if(t)
|
|
||||||
for(i = 0; i < awesomeconf->ntags; i++)
|
for(i = 0; i < awesomeconf->ntags; i++)
|
||||||
c->tags[i] = t->tags[i];
|
c->tags[i] = t->tags[i];
|
||||||
if(!loadprops(c, awesomeconf->ntags))
|
if(!loadprops(c, awesomeconf->ntags))
|
||||||
|
|
Loading…
Reference in New Issue