update client coords on manage() to set them on the right screen in Xinerama

This commit is contained in:
Julien Danjou 2007-10-27 22:54:34 +02:00
parent fe7f17a8d8
commit bd20a965f3
2 changed files with 2 additions and 2 deletions

View File

@ -339,7 +339,7 @@ client_manage(Window w, XWindowAttributes *wa, awesome_config *awesomeconf)
/* move client to screen: this will set screen and create tags array */
c->screen = get_screen_bycoord(c->display, c->x, c->y);
move_client_to_screen(c, awesomeconf, False);
move_client_to_screen(c, awesomeconf, True);
/* check for transient and set tags like its parent */
if((rettrans = XGetTransientForHint(c->display, w, &trans) == Success)

View File

@ -163,7 +163,7 @@ move_client_to_screen(Client *c, awesome_config *acf_new, Bool doresize)
for(i = 0; i < acf_new->ntags; i++)
c->tags[i] = acf_new->tags[i].selected;
if(doresize)
if(doresize && old_screen != c->screen)
{
ScreenInfo *si, *si_old;