Open Bug 1828837 Opened 3 years ago Updated 26 days ago

[gtk] Restoring a fullscreen window doesn't restore it to the previous sizemode

Categories

(Core :: Widget: Gtk, defect, P3)

defect

Tracking

()

People

(Reporter: edgar, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: gtk-severity-sweep-2026-10)

Found this issue while writing a test for bug 1823284. The test performs the following steps:

  • Open a new window
  • Ensure the window is in normal sizemode
  • Maximize the window
  • Switch the window to fullscreen sizemode
  • Restore the window

On GTK, The test window leaves fullscreen mode and restore to normal sizemode, instead of the previous sizemode. However, on Windows and macOS, it restores to maximized sizemode.

Is that a recent regression?

Flags: needinfo?(echen)

(In reply to Martin Stránský [:stransky] (ni? me) from comment #1)

Is that a recent regression?

Seems not, I got the same result on FIREFOX_NIGHTLY_110_END.

Flags: needinfo?(echen)

I suspect it's related to CSD changes. Is it fixed if you run Firefox on terminal with MOZ_GTK_TITLEBAR_DECORATION=system env variable?

Blocks: gtktitlebar
Flags: needinfo?(echen)
Priority: -- → P3

After setting MOZ_GTK_TITLEBAR_DECORATION=system, the test no longer times out while waiting for the sizemode to change to maximized. However, the test still fails because test expects the sizemode to remain 'maximized', but it seems to change to normal again. Not sure if it is expected behavior though.

Flags: needinfo?(echen)
Severity: -- → S3
Whiteboard: gtk-severity-sweep-2026-10
You need to log in before you can comment on or make changes to this bug.