Only accept usable bounds if they differ from the full bounds

Some platforms (Wayland) just report the full display area, so we
incorrectly assume the entire display is usable for a window.

Fixes #2056
This commit is contained in:
Cameron Gutman committed 2026-10-22 20:53:30 -05:00
1 parent 74020b537b
commit d79536b56d
3 files changed
+84 -23

No files matched your search

+1
View File
@@ -12,6 +12,7 @@ namespace WMUtils {
bool isRunningWayland();
bool isRunningWindowManager();
bool isRunningDesktopEnvironment();
bool hasDisplayUsableBounds();
QString getDrmCardOverride();
bool isGpuSlow();
}