Skip to content

Commit

Permalink
GotoDeskAndPage: don't broadcast duplicate new_desk events
Browse files Browse the repository at this point in the history
The new_desk event has already been broadcasted in CMD_GOTO_DESK.
  • Loading branch information
shang authored and ThomasAdam committed Apr 2, 2023
1 parent 7d5d33f commit 75bee53
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions fvwm/virtual.c
Original file line number Diff line number Diff line change
Expand Up @@ -2631,8 +2631,6 @@ void CMD_GotoDeskAndPage(F_CMD_ARGS)
if (is_tracking_shared)
goto done;

BroadcastPacket(M_NEW_DESK, 2, (long)m->virtual_scr.CurrentDesk,
(long)m->si->rr_output);
/* FIXME: domivogt (22-Apr-2000): Fake a 'restack' for sticky
* window upon desk change. This is a workaround for a
* problem in FvwmPager: The pager has a separate 'root'
Expand All @@ -2644,11 +2642,6 @@ void CMD_GotoDeskAndPage(F_CMD_ARGS)
* pager doesn't the stacking order. */
BroadcastRestackAllWindows();
}
else
{
BroadcastPacket(M_NEW_DESK, 2, (long)m->virtual_scr.CurrentDesk,
(long)m->si->rr_output);
}
done:
BroadcastMonitorList(NULL);
EWMH_SetCurrentDesktop(m);
Expand Down

0 comments on commit 75bee53

Please sign in to comment.