2026-02-22T18:22:35Z Ricardson <[email protected]>:

> 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.

Reply via email to