wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

Brave/Chromium window becomes larger after exiting fullscreen video

Open bluebyt opened this issue 1 month ago • 5 comments

Describe the bug When watching a video in a Chromium-based browser (Brave in my case), switching to fullscreen and then exiting fullscreen sometimes causes the browser window to resize incorrectly. Instead of returning to its original size, the window becomes larger than before.

To Reproduce 1- Open Brave (or any Chromium-based browser). 2- Open a video (e.g., YouTube). 3- Enter fullscreen mode. 4- Exit fullscreen mode. 5- Observe the window size.

Expected behavior The browser window should return to its previous size exactly.

Wayfire version latest git

https://github.com/user-attachments/assets/9ed3601a-532f-4189-b30c-729613057d35

bluebyt avatar Dec 01 '25 11:12 bluebyt

I have experienced this but the issue is that chrome itself remains in a fullscreen mode (tab bar, etc is not visible) so my conclusion was that the browser itself refuses to unfullscreen. Also the issue is specific to youtube, I have not been able to reproduce on any other website so far.

ammen99 avatar Dec 01 '25 12:12 ammen99

I tried both "preferred_decoration_mode = server and client same result.

It occured also on other video website: https://www.dailymotion.com/ca https://www.twitch.tv/

bluebyt avatar Dec 01 '25 12:12 bluebyt

I wasn’t able to reproduce this issue. To help determine whether it might be a client-related bug, you could try reproducing it under Sway or GNOME

killown avatar Dec 01 '25 13:12 killown

Gnome: Brave and chromium: No issue

Sway: Brave no issue Chromium: Not the same issue, but in full screen,the video is off-center Video

bluebyt avatar Dec 01 '25 17:12 bluebyt

I found a workaround but i'ts not perfect, I use an IPC script that prevents Brave from resizing. But, I've noticed that sometimes the window doesn't go completely fullscreen when the browser is maximized.

https://github.com/user-attachments/assets/f95e0c50-27a3-4773-9186-962a81b76321

bluebyt avatar Dec 06 '25 11:12 bluebyt