AppFlowy-IO / AppFlowy

Bring projects, wikis, and teams together with AI. AppFlowy is an AI collaborative workspace where you achieve more without losing control of your data. The best open source alternative to Notion.
https://www.appflowy.io
GNU Affero General Public License v3.0
58.05k stars 3.82k forks source link

[Bug] Forced full-screen mode on Linux #6478

Open alexkokobane opened 1 month ago

alexkokobane commented 1 month ago

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

Screenshot from 2024-10-04 15-32-42 Screenshot from 2024-10-04 15-43-41

Additional Context

No response

oppZ commented 1 month ago

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

alexkokobane commented 1 month ago

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):

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.

alexkokobane commented 1 month ago

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.