GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
refactor: moved temporary experimenting code to RandomExperiments
Lars Berger8399cdbe5521
diff --git a/LarsWM/Program.cs b/LarsWM/Program.csindex 2c355723..60228c97 100644--- a/LarsWM/Program.cs+++ b/LarsWM/Program.cs@@ -6,38 +6,11 @@ namespace LarsWM{class Program{-- static int SW_MAXIMIZE = 3;static void Main(string[] args){- Console.WriteLine("Hello World!");- var a = GetForegroundWindow();- Console.WriteLine("aaaaa" + a);- MoveWindow(a, 40, 0, 500, 600, true);- foreach (Process proc in Process.GetProcesses())- {-- Console.WriteLine(proc);- if (proc.MainWindowTitle.Contains("Spotify"))- {- ShowWindow(proc.MainWindowHandle, SW_MAXIMIZE);- SetFocus(proc.MainWindowHandle);- }- }+ // Create a workspace and assign a workspace to each connected display}-- [DllImport("user32.dll")]- public static extern IntPtr GetForegroundWindow();-- [DllImport("user32.dll")]- public static extern bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint);-- [DllImport("user32.dll")]- public static extern bool SetFocus(IntPtr hWnd);-- [DllImport("user32.dll")]- public static extern bool ShowWindow(IntPtr hWnd, int X);}}diff --git a/LarsWM/RandomExperiments.cs b/LarsWM/RandomExperiments.csnew file mode 100644index 00000000..a2fa00dd--- /dev/null+++ b/LarsWM/RandomExperiments.cs@@ -0,0 +1,43 @@+using System;+using System.Diagnostics;+using System.Runtime.InteropServices;++namespace LarsWM+{+ class RandomExperiments+ {++ static int SW_MAXIMIZE = 3;++ static void Main(string[] args)+ {+ Console.WriteLine("Hello World!");+ var a = GetForegroundWindow();+ Console.WriteLine("aaaaa" + a);+ MoveWindow(a, 40, 0, 500, 600, true);++ foreach (Process proc in Process.GetProcesses())+ {++ Console.WriteLine(proc);+ if (proc.MainWindowTitle.Contains("Spotify"))+ {+ ShowWindow(proc.MainWindowHandle, SW_MAXIMIZE);+ SetFocus(proc.MainWindowHandle);+ }+ }+ }++ [DllImport("user32.dll")]+ public static extern IntPtr GetForegroundWindow();++ [DllImport("user32.dll")]+ public static extern bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint);++ [DllImport("user32.dll")]+ public static extern bool SetFocus(IntPtr hWnd);++ [DllImport("user32.dll")]+ public static extern bool ShowWindow(IntPtr hWnd, int X);+ }+}