From cffeb9a22c2d6dabb409ef61245f2de8f4954e63 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 16 Oct 2007 22:43:03 +0200 Subject: [PATCH] use get_client_bywin in manage() --- client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client.c b/client.c index 03e39d436..0fa840832 100644 --- a/client.c +++ b/client.c @@ -432,9 +432,8 @@ manage(Display *disp, Window w, XWindowAttributes *wa, awesome_config *awesomeco grabbuttons(c, False, True, awesomeconf->modkey, awesomeconf->numlockmask); updatetitle(c); move_client_to_screen(c, awesomeconf, False); - if((rettrans = XGetTransientForHint(disp, w, &trans) == Success)) - for(t = *awesomeconf->clients; t && t->win != trans; t = t->next); - if(t) + if((rettrans = XGetTransientForHint(disp, w, &trans) == Success) + && (t = get_client_bywin(awesomeconf->clients, trans))) for(i = 0; i < awesomeconf->ntags; i++) c->tags[i] = t->tags[i]; if(!loadprops(c, awesomeconf->ntags))