Open Bug 927621 Opened 12 years ago Updated 3 years ago

Restoring firefox in dwm causes resize issue

Categories

(Firefox :: Session Restore, defect)

24 Branch
All
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: uberushaximus, Unassigned)

Details

Attachments

(1 file)

Attached image tilingissuefirefox.png
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0 (Beta/Release) Build ID: 20130917081302 Steps to reproduce: Cause firefox to display restore dialog by non-graceful shutdown (terminate xserver or firefox) with a window tiled next to it. Restore session Actual results: Firefox paints a small window instead of using the whole screen. Issue can be mitigated by tiling another window next to firefox, where it will start drawing normally. Expected results: Firefox will restore tabs without worrying about window size or position on tiling window managers.
Hardware: x86_64 → All
Component: Untriaged → Session Restore
same issue with xmonad on arch linux
I have this issue using dwm and firefox 62.0, too. It doesn't just happen when Firefox crashed though, it also happens when you just have "When Firefox starts" set to "Show your windows and tabs from last time". This bug is really annoying because it occurs every time you start Firefox with this setting enabled. The fact that this bug was reported 5 years ago doesn't give me much hope that it will be fixed any time soon.

I also have this problem on fresh installs of both Arch Linux and Artix, using dwm and Firefox 82.0.2.

When closing an active Firefox session and reopening Firefox, if "Restore previous session" is checked in preferences, the window will not resize to fit the tile properly and will appear distorted (as pictured by uberushaximus above). I believe (as a lay person) that this has something to do with Firefox trying to save the window's size that it was last time and restore that same size, which would be fine in any other type of window manager but doesn't make sense in a tiling window manager as the window will always open as a set sized tile. To be clear, as soon as you open another window in dwm and thereby resize Firefox's tile, it displays properly and will continue to display properly afterwards, so any action that manually tries to resize Firefox after that initial boot seems to fix the issue. Also to be clear, this issue is not occuring for me with "Restore previous session" unchecked in preferences. And, when "Restore previous session" is enabled, if you open Firefox into a tile that's exactly the same size as the tile that Firefox was in when it was closed (for example, if it's the only tile both when you close Firefox and reopen it again), Firefox will open into a window size which is exactly the same, and will appear totally fine and function perfectly (though I suspect the bug is still happening, it's just that the size Firefox is trying to be when it glitches out happens to be the same size Firefox actually is, suppressing any symptoms).

I use the "Restore previous session" feature religiously in Firefox and this drastically reduces my quality of life, especially considering that this is occurring in a window manager that's entirely designed for minimalism not just in resources but also in keypresses. Having to open and close for example a terminal window every time I open Firefox is pretty frustrating, especially when using Firefox as your primary browser to do most

If it helps, this bug does not occur in the Waterfox fork with the same settings.

I experienced a similar issue on dwm.
What resolved the problem for me was to comment out / remove the following line containing firefox in config.h

/* class            instance    title       tags m
{ "Gimp",           NULL,       NULL,       0,
/* { "Firefox",        NULL,       NULL,       1 < focus on the fullscreen window */

Let me know if it helped.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: