don't forget to retag windows on screen changes

This commit is contained in:
Julien Danjou 2007-11-14 10:51:53 +01:00
parent aebe42decd
commit 5c5e9418d7
1 changed files with 6 additions and 0 deletions

View File

@ -316,8 +316,11 @@ client_manage(Window w, XWindowAttributes *wa, awesome_config *awesomeconf)
break;
}
if(!has_rule)
{
tag_client_with_current_selected(c, current_acf);
move_client_to_screen(c, current_acf, True);
}
}
/* if window request fullscreen mode */
if(c->w == screen_info[current_acf->screen].width && c->h == screen_info[current_acf->screen].height)
@ -482,9 +485,12 @@ client_resize(Client *c, int x, int y, int w, int h, awesome_config *awesomeconf
{
int new_screen = get_screen_bycoord(c->display, c->x, c->y);
if(c->screen != new_screen)
{
tag_client_with_current_selected(c, &awesomeconf[new_screen - awesomeconf->screen]);
move_client_to_screen(c, &awesomeconf[new_screen - awesomeconf->screen], False);
}
}
}
}
void