Skip to content

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?

50 points25 comments
Open on Reddit
About this post
Posted
Archived
Score
50 · 100% up
Kind
Text
ID
cl6666

Author

46
posts
407
comments
0
media
View profile

27 comments

this happens for me on xfce occasionally. I unmax and maximise the window and it's ok

22 points

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?

19 points

I see the same thing in i3. Just quickly toggle fullscreen and it will restore itself. Super f by default I think.

6 points

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

2 points

I just had the exact same realization while reading this.. forgot all about fullscreen mode

1 points

Firefox was always retarded with initial window painting. What should help is setting MOZ_GTK_TITLEBAR_DECORATION=client env variable somewhere.

5 points

Oh shit, will that finally make Firefox match my gtk theme too?

1 points

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.

1 points
unknown author

Deleted before we saved it.

1 points

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.

3 points

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.

3 points

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.

1 points

Not a fix, but switching between stacked and tile mode, or reloading i3 usully does it

1 points

I see this on occasion as well. Just do anything to resize the window (opening something else, fullscreen, etc) and it'll fix itself

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.