move_client_to_screen() implies tag_client_with_current_selected()
This commit is contained in:
parent
aa4de56ef5
commit
dd2c511181
5
client.c
5
client.c
|
@ -280,7 +280,6 @@ client_manage(Window w, XWindowAttributes *wa, awesome_config *awesomeconf)
|
||||||
c->phys_screen = awesomeconf->phys_screen;
|
c->phys_screen = awesomeconf->phys_screen;
|
||||||
c->screen = get_screen_bycoord(c->display, c->x, c->y);
|
c->screen = get_screen_bycoord(c->display, c->x, c->y);
|
||||||
|
|
||||||
tag_client_with_current_selected(c, awesomeconf);
|
|
||||||
move_client_to_screen(c, current_acf, True);
|
move_client_to_screen(c, current_acf, True);
|
||||||
|
|
||||||
/* update window title */
|
/* update window title */
|
||||||
|
@ -299,7 +298,6 @@ client_manage(Window w, XWindowAttributes *wa, awesome_config *awesomeconf)
|
||||||
if(r->screen != RULE_NOSCREEN && r->screen != c->screen)
|
if(r->screen != RULE_NOSCREEN && r->screen != c->screen)
|
||||||
{
|
{
|
||||||
current_acf = &awesomeconf[r->screen - awesomeconf->screen];
|
current_acf = &awesomeconf[r->screen - awesomeconf->screen];
|
||||||
tag_client_with_current_selected(c, current_acf);
|
|
||||||
move_client_to_screen(c, current_acf, True);
|
move_client_to_screen(c, current_acf, True);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -481,10 +479,7 @@ 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);
|
int new_screen = get_screen_bycoord(c->display, c->x, c->y);
|
||||||
if(c->screen != new_screen)
|
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);
|
move_client_to_screen(c, &awesomeconf[new_screen - awesomeconf->screen], False);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
1
event.c
1
event.c
|
@ -164,7 +164,6 @@ handle_event_configurerequest(XEvent * e, awesome_config *awesomeconf)
|
||||||
if(old_screen != c->screen)
|
if(old_screen != c->screen)
|
||||||
{
|
{
|
||||||
move_client_to_screen(c, &awesomeconf[c->screen], False);
|
move_client_to_screen(c, &awesomeconf[c->screen], False);
|
||||||
tag_client_with_current_selected(c, &awesomeconf[c->screen]);
|
|
||||||
drawstatusbar(&awesomeconf[old_screen]);
|
drawstatusbar(&awesomeconf[old_screen]);
|
||||||
drawstatusbar(&awesomeconf[c->screen]);
|
drawstatusbar(&awesomeconf[c->screen]);
|
||||||
}
|
}
|
||||||
|
|
4
screen.c
4
screen.c
|
@ -163,6 +163,9 @@ move_client_to_screen(Client *c, awesome_config *acf_new, Bool doresize)
|
||||||
{
|
{
|
||||||
int old_screen = c->screen;
|
int old_screen = c->screen;
|
||||||
|
|
||||||
|
/* tag client with new screen tags */
|
||||||
|
tag_client_with_current_selected(c, acf_new);
|
||||||
|
|
||||||
c->screen = acf_new->screen;
|
c->screen = acf_new->screen;
|
||||||
|
|
||||||
if(doresize && old_screen != c->screen)
|
if(doresize && old_screen != c->screen)
|
||||||
|
@ -273,7 +276,6 @@ uicb_client_movetoscreen(awesome_config * awesomeconf,
|
||||||
new_screen = get_screen_count(awesomeconf->display) - 1;
|
new_screen = get_screen_count(awesomeconf->display) - 1;
|
||||||
|
|
||||||
prev_screen = sel->screen;
|
prev_screen = sel->screen;
|
||||||
tag_client_with_current_selected(sel, &awesomeconf[new_screen - awesomeconf->screen]);
|
|
||||||
move_client_to_screen(sel, &awesomeconf[new_screen - awesomeconf->screen], True);
|
move_client_to_screen(sel, &awesomeconf[new_screen - awesomeconf->screen], True);
|
||||||
move_mouse_pointer_to_screen(awesomeconf->display, new_screen);
|
move_mouse_pointer_to_screen(awesomeconf->display, new_screen);
|
||||||
arrange(&awesomeconf[prev_screen - awesomeconf->screen]);
|
arrange(&awesomeconf[prev_screen - awesomeconf->screen]);
|
||||||
|
|
Loading…
Reference in New Issue