Kaynağa Gözat

bar/control-center/menu always on top, desktop at bottom

Milan Jurkulak 3 ay önce
ebeveyn
işleme
fec9d55999

+ 3 - 0
shared/src/desktopMain/kotlin/org/mjdev/desktop/components/appsmenu/AppsMenuWindow.kt

@@ -81,6 +81,9 @@ fun AppsMenuWindow(
     ChromeWindow(
         name = "AppsMenu",
         visible = menuState.isVisible,
+        // Always on top like the bar/control center — a shell surface that must never end up
+        // behind the desktop window.
+        alwaysOnTop = true,
         size = size,
         position = position,
         windowState = menuState,

+ 3 - 0
shared/src/desktopMain/kotlin/org/mjdev/desktop/components/controlcenter/ControlCenterWindow.kt

@@ -60,6 +60,9 @@ fun ControlCenterWindow(
     ChromeWindow(
         name = "ControlCenter",
         visible = true,
+        // Always on top: the control center (and its right-edge reveal handle) must stay above the
+        // desktop window so the handle is always reachable.
+        alwaysOnTop = true,
         windowState = controlCenterState,
         onFocusChange = onFocusChange,
         position = position,

+ 4 - 0
shared/src/desktopMain/kotlin/org/mjdev/desktop/components/dockbar/DockBarWindow.kt

@@ -105,6 +105,10 @@ fun DockBarWindow(
     ChromeWindow(
         name = "DockBar",
         visible = true,
+        // Always on top: the bar (and its thin reveal handle when collapsed) must sit above the
+        // desktop window, or a click that raises the desktop would bury the handle and it stops
+        // working.
+        alwaysOnTop = true,
         position = position,
         size = size,
         onFocusChange = onFocusChange,