From cac4e1f9a7af1c92e4bd61a42fb48359df6eeaec Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 26 Jul 2017 10:06:50 -0400 Subject: [PATCH] fix app launcher mouse hit detection --- ShiftOS.Frontend/Desktop/Desktop.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ShiftOS.Frontend/Desktop/Desktop.cs b/ShiftOS.Frontend/Desktop/Desktop.cs index ec40227..7bd5d3c 100644 --- a/ShiftOS.Frontend/Desktop/Desktop.cs +++ b/ShiftOS.Frontend/Desktop/Desktop.cs @@ -229,8 +229,12 @@ namespace ShiftOS.Frontend.Desktop var al_left = LoadedSkin.AppLauncherFromLeft; + + int al_top = (LoadedSkin.DesktopPanelPosition == 0) ? 0 : Height - LoadedSkin.DesktopPanelHeight; + + var al_size = LoadedSkin.AppLauncherHolderSize; - if(MouseX >= al_left.X && MouseY >= al_left.Y && MouseX <= al_left.X + al_size.Width && MouseY <= al_left.Y + al_size.Height) + if(MouseX >= al_left.X && MouseY >= al_left.Y + al_top && MouseX <= al_left.X + al_size.Width && MouseY <= al_left.Y + al_top + al_size.Height) { if(alOpen == false && MouseLeftDown == true) {