GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat: added Process property to Window model
Lars0aa406543bc8
diff --git a/LarsWM/Window.cs b/LarsWM/Window.csindex 0000a283..74ac521e 100644--- a/LarsWM/Window.cs+++ b/LarsWM/Window.cs@@ -1,6 +1,8 @@using System;using System.Collections.Generic;+using System.Diagnostics;using System.Text;+using static LarsWM.WindowsApi.WindowsApiFacade;namespace LarsWM{@@ -13,36 +15,38 @@ namespace LarsWMHwnd = hwnd;}+ public Process Process => GetProcessOfWindow(this);+/// <summary>/// This window's style flags./// </summary>- public WindowStyleFlags Style- {- get- {- return unchecked((WindowStyleFlags)GetWindowLongPtr(_hwnd, (int)(GWL.GWL_STYLE)).ToInt64());- }- set- {- SetWindowLong(_hwnd, (int)GWL.GWL_STYLE, (int)value);- }+ //public WindowStyleFlags Style+ //{+ // get+ // {+ // return unchecked((WindowStyleFlags)GetWindowLongPtr(_hwnd, (int)(GWL.GWL_STYLE)).ToInt64());+ // }+ // set+ // {+ // SetWindowLong(_hwnd, (int)GWL.GWL_STYLE, (int)value);+ // }- }+ //}/// <summary>/// This window's extended style flags./// </summary>- [CLSCompliant(false)]- public WindowExStyleFlags ExtendedStyle- {- get- {- return unchecked((WindowExStyleFlags)GetWindowLongPtr(_hwnd, (int)(GWL.GWL_EXSTYLE)).ToInt64());- }- set- {- SetWindowLong(_hwnd, (int)GWL.GWL_EXSTYLE, (int)value);- }- }+ //[CLSCompliant(false)]+ //public WindowExStyleFlags ExtendedStyle+ //{+ // get+ // {+ // return unchecked((WindowExStyleFlags)GetWindowLongPtr(_hwnd, (int)(GWL.GWL_EXSTYLE)).ToInt64());+ // }+ // set+ // {+ // SetWindowLong(_hwnd, (int)GWL.GWL_EXSTYLE, (int)value);+ // }+ //}}}