diff options
| author | DemonKingSwarn <rockingswarn@gmail.com> | 2025-11-10 16:29:30 +0530 |
|---|---|---|
| committer | DemonKingSwarn <rockingswarn@gmail.com> | 2025-11-10 16:29:30 +0530 |
| commit | 767ecdd9d75a9987ff34f82f67776ba00e5939ec (patch) | |
| tree | 072275bb111db5fc70466af6275aec8d89b2a539 /src/GetWindows.cs | |
| parent | bebe517a6ee63452afb8f3fd33379ef092da2cb0 (diff) | |
| download | hypr-wellbeing-767ecdd9d75a9987ff34f82f67776ba00e5939ec.zip hypr-wellbeing-767ecdd9d75a9987ff34f82f67776ba00e5939ec.tar.gz | |
chore: removed windows support
Diffstat (limited to 'src/GetWindows.cs')
| -rw-r--r-- | src/GetWindows.cs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/GetWindows.cs b/src/GetWindows.cs index 336f8b1..0508a88 100644 --- a/src/GetWindows.cs +++ b/src/GetWindows.cs @@ -9,13 +9,6 @@ namespace hyprwatch.Window public partial class GetWindows { - - [DllImport("user32.dll")] - static extern IntPtr GetForegroundWindow(); - - [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] - static extern int GetClassName(IntPtr hWnd, StringBuilder lpClassName, int nMaxCount); - public static string ActiveWindow() { string desktopEnv = Environment.GetEnvironmentVariable("XDG_CURRENT_DESKTOP"); @@ -92,20 +85,6 @@ namespace hyprwatch.Window } } - else if (os == "Windows") - { - - IntPtr handle = GetForegroundWindow(); - if(handle != IntPtr.Zero) - { - StringBuilder className = new StringBuilder(256); - if(GetClassName(handle, className, className.Capacity) > 0) - { - activeWindow = className.ToString(); - } - } - } - if(activeWindow == null) { activeWindow = "Home-Screen"; |
