From 65b458b912cfc09ef4698834c537ab832b50c2a9 Mon Sep 17 00:00:00 2001 From: "wilson.shang" Date: Tue, 28 Mar 2023 11:58:51 +0800 Subject: [PATCH] GotoDeskAndPage: don't broadcast duplicate new_desk events The new_desk event has already been broadcasted in CMD_GOTO_DESK. --- fvwm/virtual.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/fvwm/virtual.c b/fvwm/virtual.c index 8ffd94e0f..dd8d6e216 100644 --- a/fvwm/virtual.c +++ b/fvwm/virtual.c @@ -2633,8 +2633,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' @@ -2646,11 +2644,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);