[Bug] Forced full-screen mode on Linux
Bug Description
The app automatically enters an inescapable full-screen mode from the second time it's opened after installation. When in this full-screen mode F11, Esc, Alt+Left click+Move or any other window resizing keys do not function. The only way to leave the app becomes Alt+F4 to close the window or Alt+Tab to switch windows to a different app.
How to Reproduce
Install either the Deb, AppImage or Flatpack packages. After installation sign in and set up the app, then quit and reopen it. The first time you open the app after installation everything might seem functioning as expected but it is not the case when it is opened subsequently.
Expected Behavior
It must not open into full-screen mode, it should have a typical system window that can be resized, minimised and maximised at will.
Operating System
Linux Mint 21.3 Cinnamon 6.0.4
AppFlowy Version(s)
v0.6.8, v0.6.9 & v0.7.0
Screenshots
Additional Context
No response
i tried on a Linux Mint 21.3 Cinnamon 6.0.4 and i get this behavior only when fractional scaling 175% and 200%, but works normally on 75%, 100%, 125% and 150%. In the settings, fractional scaling is said to be experimental so that might be the issue. Perhaps it might be fixed in linux mint 22, but i don't have a LM22 to check. Possible fixes might be to reduce the scaling and/or installing/upgrading to LM22. If you choose to upgrade, backup your files just in case something goes wrong
I didn't have fractional scaling enabled and the highest resolution of my display is 1366x768.
However, I tried with fractional scaling enabled and resolution at 1280x720 (the highest resolution my system allows fractional scaling):
- When scaled to 75% or 100% the problem persisted.
- When scaled to 125%, the screen was small, it wasn't fullscreen, the window bar was visible but I still couldn't unmaximise (the button wasn't there).
I discovered that to exit the forced fullscreen I need to set the resolution to 1280x720, scale to 125% and then revert back to 1366x768 at 100%. After this process the app continues to function was expected as long as it's not maximised. If I quit it while maximised, the forced fullscreen comes back the next time it's opened.
I tested it in the experimental Cinnamon Wayland implementation and it functions exactly as expected without any issues. So I reckon the issue is only with the x11 environment.
Hi, I have the same issues in Linux Mint 22 Cinnamon Cinnamon Version: 6.2.9 Linux Kernel: 6.8.0-49-generic Display : 1366 x 768 (16:9) 100%
Trying the "exit the forced fullscreen I need to set the resolution to 1280x720, scale to 125%, and then revert to 1366x768 at 100%" solution but did not work.
Hi. I experienced this problem on Windows 10 until a few days ago. Now I fully switched my notebook to Linux Mint 22.1 Cinnamon and the problem is still present. Both when I use my notebook display (1336 x 768) and when I use my main external monitor (2569 x 1440). No scaling options active.
To escape the forced full-screen this is the procedure I followed successfully:
- close AppFlowy
- enter Display settings
- activate fractional scaling and set the scaling to 75%
- open AppFlowy; now it's not full-screen anymore and the icons and options to resize the window area present.
- disable fractional scaling
At this point I get a message that Cinnamon crashed (fractional scaling is an experimental feature), and whether I what to restart it. I do and everything works fine...as long as I don't close AppFlowy maximized again.
The previous workaround is not always possible, so I will describe an alternative solution that should always work.
The Problem
When I'm not using the second monitor, the option for setting the scaling is disabled. Without it, I can't reduce the window size as described in my previous post.
The Workaround
- Close Appflowy.
- Show hidden folders and navigate to /home/your_user_name/.local/share/AppFlowy/.
- Edit the file shared_preferences.json.
- After the opening
{you'll find something like"flutter.windowSize":"{\"height\":736.0,\"width\":1366.0}". - Change the number associated with height to a smaller one. I set it from 736 to 600.
- Save the file.
- Open Appflowy.
Now the forced fullscreen should be gone and the keyboard shortcuts to resize or tile the app should be working again.
Other info for the developers
I don't know if this is useful but when the app was in this "forced fullscreen" mode and was closed, I tried to edit the json and set "flutter.windowMaximized":"true" to false (without changing the height parameter).
When I reopened Appflowy the windowMaximized parameter automatically changed to true and the forced fullscreen was still in place.