mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-05 20:26:09 +01:00
move_client_to_screen() does not manage tags, let's use tag_client_with_current_selected() instead
This commit is contained in:
parent
0f2db7653d
commit
89c2fc9f44
1 changed files with 2 additions and 5 deletions
7
screen.c
7
screen.c
|
@ -161,14 +161,10 @@ get_phys_screen(Display *disp, int screen)
|
||||||
void
|
void
|
||||||
move_client_to_screen(Client *c, awesome_config *acf_new, Bool doresize)
|
move_client_to_screen(Client *c, awesome_config *acf_new, Bool doresize)
|
||||||
{
|
{
|
||||||
int i, old_screen = c->screen;
|
int old_screen = c->screen;
|
||||||
|
|
||||||
c->screen = acf_new->screen;
|
c->screen = acf_new->screen;
|
||||||
|
|
||||||
p_realloc(&c->tags, acf_new->ntags);
|
|
||||||
for(i = 0; i < acf_new->ntags; i++)
|
|
||||||
c->tags[i] = acf_new->tags[i].selected;
|
|
||||||
|
|
||||||
if(doresize && old_screen != c->screen)
|
if(doresize && old_screen != c->screen)
|
||||||
{
|
{
|
||||||
ScreenInfo *si, *si_old;
|
ScreenInfo *si, *si_old;
|
||||||
|
@ -277,6 +273,7 @@ uicb_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 a new issue