From 458ef3c0d5ec8b476b9d53a43b86a2194593b08a Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Thu, 18 Sep 2025 18:28:01 -0400 Subject: [PATCH] TrayMenu: not using 'Screen' as we have a proper 'screen' --- Modules/Bar/Extras/TrayMenu.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Bar/Extras/TrayMenu.qml b/Modules/Bar/Extras/TrayMenu.qml index be436214..8753deb8 100644 --- a/Modules/Bar/Extras/TrayMenu.qml +++ b/Modules/Bar/Extras/TrayMenu.qml @@ -235,13 +235,13 @@ PopupWindow { openLeft = false } else { // Bar is horizontal (top/bottom) or undefined, use space-based logic - openLeft = (globalPos.x + entry.width + submenuWidth > (screen ? screen.width : Screen.width)) + openLeft = (globalPos.x + entry.width + submenuWidth > screen.width) // Secondary check: ensure we don't open off-screen if (openLeft && globalPos.x - submenuWidth < 0) { // Would open off the left edge, force right opening openLeft = false - } else if (!openLeft && globalPos.x + entry.width + submenuWidth > (screen ? screen.width : Screen.width)) { + } else if (!openLeft && globalPos.x + entry.width + submenuWidth > screen.width) { // Would open off the right edge, force left opening openLeft = true }