Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

fix: rename method in RandomExperiments to avoid duplicate `main` function

Lars923fbeda6314
diff --git a/LarsWM/RandomExperiments.cs b/LarsWM/RandomExperiments.cs
index a2fa00dd..ccda38e6 100644
--- a/LarsWM/RandomExperiments.cs
+++ b/LarsWM/RandomExperiments.cs
@@ -1,43 +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);
- }
-}
+using System;
+using System.Diagnostics;
+using System.Runtime.InteropServices;
+
+namespace LarsWM
+{
+ class RandomExperiments
+ {
+
+ static int SW_MAXIMIZE = 3;
+
+ static void Experiments(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);
+ }
+}