use get_client_bywin in manage()

This commit is contained in:
Julien Danjou 2007-10-16 22:43:03 +02:00
parent 1080180320
commit cffeb9a22c
1 changed files with 2 additions and 3 deletions

View File

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