update client coords on manage() to set them on the right screen in Xinerama
This commit is contained in:
parent
fe7f17a8d8
commit
bd20a965f3
2
client.c
2
client.c
|
@ -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 */
|
/* move client to screen: this will set screen and create tags array */
|
||||||
c->screen = get_screen_bycoord(c->display, c->x, c->y);
|
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 */
|
/* check for transient and set tags like its parent */
|
||||||
if((rettrans = XGetTransientForHint(c->display, w, &trans) == Success)
|
if((rettrans = XGetTransientForHint(c->display, w, &trans) == Success)
|
||||||
|
|
2
screen.c
2
screen.c
|
@ -163,7 +163,7 @@ move_client_to_screen(Client *c, awesome_config *acf_new, Bool doresize)
|
||||||
for(i = 0; i < acf_new->ntags; i++)
|
for(i = 0; i < acf_new->ntags; i++)
|
||||||
c->tags[i] = acf_new->tags[i].selected;
|
c->tags[i] = acf_new->tags[i].selected;
|
||||||
|
|
||||||
if(doresize)
|
if(doresize && old_screen != c->screen)
|
||||||
{
|
{
|
||||||
ScreenInfo *si, *si_old;
|
ScreenInfo *si, *si_old;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue