Re: [dev] dwm floating rule does not sanitize window geometry from previous WM

From: Страхиња Радић <sr_AT_strahinja.org>
Date: Mon, 23 Feb 2026 21:41:29 +0100

2026-02-22T18:22:35Z Ricardson <r1w1s1_AT_fastmail.com>:

> In my case the root cause is 1wm, which moves every window to 0,0 on
> ConfigureRequest with no EWMH awareness, leaving Firefox with corrupted
> session state.

The root cause is Firefox, which should include a built-in mechanism to
override the saved geometry without erasing or manually altering the
saved state. Likewise, recent versions of Firefox unfortunately use
Wayland, so useful X.Org-based tools, such as wmctrl, won't be able to
manipulate its window. I'm talking about somwthing like

        wmctrl -r Firefox -e 0,100,100,640,480
        # | | | | height
        # | | | width
        # | | Y position
        # | X position
        # gravity

You could alter xulstore.json using jq:

        cfgfile=$(find ~/.config/mozilla -name xulstore.json | sed 1q)
        mv "$cfgfile" "$cfgfile.bak"
        jq '.[]."main-window" |= {
                screenX: "100",
                screenY: "100",
                width: "640",
                height: "480",
                sizemode: "normal"
        }' "$cfgfile.bak" > "$cfgfile"

or simply delete the file and have Firefox regenerate it.
Received on Mon Feb 23 2026 - 21:41:29 CET

This archive was generated by hypermail 2.3.0 : Mon Feb 23 2026 - 21:48:08 CET