Weird window sizes with Firefox on i3
I have Firefox set to launch with a hotkey on i3. If the previous Firefox session was only taking up half the screen and I have since logged out or rebooted, then launch Firefox and it takes up the entire screen, only the border will fill the screen, but the tabs, page, etc., will only occupy the space of the previous session.
I get around this by making the window float then setting it back to tile, but it would be great if I could not have this issue at all. Anyone have a fix for this?
About this post
- Posted
- Archived
- Score
- 50 · 100% up
- Kind
- Text
- ID
- cl6666
27 comments
this happens for me on xfce occasionally. I unmax and maximise the window and it's ok
Yep. Me too.
Found a workaround https://www.reddit.com/r/archlinux/comments/d786nx/xfce_workaround_for_the_weird_firefox_window/
Happens with awesome wm as well.
Same... but how to unmax then max in i3? Toggle floating mode?
step1: mod f step2: mod f.
Alternatively, step1: [f12] step2: [f12]
Hey, this looks kind of just like the issue someone else posted about 3 hours ago: https://www.reddit.com/r/archlinux/comments/cl31id/firefox_edges_getting_cut_off_version_6801_and/
Seems like Firefox has problems with window sizing. I guess on startup it sets its window size to what it was from previous session, and then doesn't bother to see if its window is actually that size or not. Makes sense to assume that the person in that other post had Firefox open in a bigger window in their previous session. lol
Anyone up to go report something somewhere?
I see the same thing in i3. Just quickly toggle fullscreen and it will restore itself. Super f by default I think.
I'm such an idiot. I always switched Firefox to floating mode and then back which screws my pre-defined layout so I have to manually move Firefox back to its original location. I never even thought of just using full screen mode..
I just had the exact same realization while reading this.. forgot all about fullscreen mode
Firefox was always retarded with initial window painting. What should help is setting MOZ_GTK_TITLEBAR_DECORATION=client env variable somewhere.
Oh shit, will that finally make Firefox match my gtk theme too?
No, it's just hints for the initial window painting. Found that in some mozilla bug report on same issue you are having ages ago where one of the devs advised to try this.
EDIT: https://bugzilla.mozilla.org/show_bug.cgi?id=1489463
firefox has a dark mode now, I think it also works with gtk 3 themes but not gtk 2 themes. I switched to a gtk 3 theme and all of a sudden a ton of programs started using my theme colors.
Deleted before we saved it.
Know issue with Firefox in general, I think. I've had it happen both in DEs (mainly running Xfce and Cinnamon), and in Windows as well.
I've had this issue too. I've just been quickly opening and closing a terminal window to get the Firefox window to resize to the correct size.
<mod>+shift+R
actually you can fix it by just resizing the window
More keystrokes
im not crazy
Well, you still may be crazy, but not because of this ;)
Not seeing that issue here, but I do remember something similar at some point long ago with I think one of the browsers. Cannot remember what I did to solve it but my guess is that it is likely a configuration issue. I would first rule this out by creating a new user and seeing it they suffer from the same issue. If they don't then resetting your current firefox profile could help.
Not a fix, but switching between stacked and tile mode, or reloading i3 usully does it
I see this on occasion as well. Just do anything to resize the window (opening something else, fullscreen, etc) and it'll fix itself