diff --git a/Flow.Launcher.Infrastructure/Win32Helper.cs b/Flow.Launcher.Infrastructure/Win32Helper.cs index cdb384ab7..8dbe3f7e9 100644 --- a/Flow.Launcher.Infrastructure/Win32Helper.cs +++ b/Flow.Launcher.Infrastructure/Win32Helper.cs @@ -299,15 +299,8 @@ namespace Flow.Launcher.Infrastructure #region WndProc - public static bool WM_ENTERSIZEMOVE(uint msg) - { - return msg == PInvoke.WM_ENTERSIZEMOVE; - } - - public static bool WM_EXITSIZEMOVE(uint msg) - { - return msg == PInvoke.WM_EXITSIZEMOVE; - } + public const int WM_ENTERSIZEMOVE = (int)PInvoke.WM_ENTERSIZEMOVE; + public const int WM_EXITSIZEMOVE = (int)PInvoke.WM_EXITSIZEMOVE; #endregion diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 124594e1b..1943c59a4 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -212,17 +212,18 @@ namespace Flow.Launcher break; } }; + // ✅ QueryTextBox.Text 변경 감지 (글자 수 1 이상일 때만 동작하도록 수정) QueryTextBox.TextChanged += (sender, e) => UpdateClockPanelVisibility(); // ✅ ContextMenu.Visibility 변경 감지 DependencyPropertyDescriptor - .FromProperty(UIElement.VisibilityProperty, typeof(ContextMenu)) + .FromProperty(VisibilityProperty, typeof(ContextMenu)) .AddValueChanged(ContextMenu, (s, e) => UpdateClockPanelVisibility()); // ✅ History.Visibility 변경 감지 DependencyPropertyDescriptor - .FromProperty(UIElement.VisibilityProperty, typeof(StackPanel)) // History는 StackPanel이라고 가정 + .FromProperty(VisibilityProperty, typeof(StackPanel)) // History는 StackPanel이라고 가정 .AddValueChanged(History, (s, e) => UpdateClockPanelVisibility()); }