X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=src%2Fmanage.c;h=c4706b0dd20892b4c2493f9344f34ce753e31dac;hp=4031ade63b859cc55d709a47c33d8ad1b04cc91e;hb=HEAD;hpb=7c21b5995d1fa3d378d3143557376c1e586d3a86 diff --git a/src/manage.c b/src/manage.c index 4031ade6..c4706b0d 100644 --- a/src/manage.c +++ b/src/manage.c @@ -246,17 +246,13 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki DLOG("Initial geometry: (%d, %d, %d, %d)\n", geom->x, geom->y, geom->width, geom->height); - Con *nc = NULL; - Match *match = NULL; - Assignment *assignment; - - /* TODO: two matches for one container */ - /* See if any container swallows this new window */ - nc = con_for_window(search_at, cwindow, &match); + Match *match = NULL; + Con *nc = con_for_window(search_at, cwindow, &match); const bool match_from_restart_mode = (match && match->restart_mode); if (nc == NULL) { Con *wm_desktop_ws = NULL; + Assignment *assignment; /* If not, check if it is assigned to a specific workspace */ if ((assignment = assignment_for(cwindow, A_TO_WORKSPACE)) ||