Brave/Chromium window becomes larger after exiting fullscreen video
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
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.
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/
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
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
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