HI

Switching desktops in fvwm3 1.0.9 is broken.
I can switch to next desktop only by fvwm's internal GotoDesk command
but cannot do this with wmctrl command or libwnck tools

Looks like problem appears with additional checks in ewmh_CurrentDesktop()
Here is a quick and dirty fix for this issue

--- fvwm3-1.0.9/fvwm/ewmh_events.c.orig 2024-01-29 12:00:49.382126497 +0200
+++ fvwm3-1.0.9/fvwm/ewmh_events.c  2024-01-29 12:02:07.292984352 +0200
@@ -53,9 +53,11 @@
     * intend window (fw) is NULL, disallow this.  We only want to switch
     * desktops on client requests for the correct desktop.
     */
+#if 0
    if (ev->xclient.window == Scr.Root && fw == NULL) {
        return -1;
    }
+#endif

    struct monitor  *m = monitor_get_current();
    if (ev->xclient.data.l[0] < 0 || ev->xclient.data.l[0] > 0x7fffffff)



-- 
wbr,

Victor "Ananas" Ananjevsky

Reply via email to