mirror of
https://github.com/ckaczor/FloatingStatusWindow.git
synced 2026-01-14 17:23:06 -05:00
Allow our messages from non-elevated processes
This commit is contained in:
@@ -77,6 +77,14 @@ internal partial class MainWindow
|
||||
WindowSettings.Apply();
|
||||
}
|
||||
|
||||
protected override void OnSourceInitialized(EventArgs e)
|
||||
{
|
||||
base.OnSourceInitialized(e);
|
||||
|
||||
var windowHandle = new WindowInteropHelper(this).Handle;
|
||||
WindowManager.AllowMessagesThroughFilter(windowHandle);
|
||||
}
|
||||
|
||||
protected override IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
|
||||
{
|
||||
if (msg == WindowManager.SetLockMessage)
|
||||
|
||||
Reference in New Issue
Block a user