From b2b7d4c442dffc518f0f29d3fabb9c06ea9c4229 Mon Sep 17 00:00:00 2001 From: MichaelTheShifter Date: Tue, 5 Jul 2016 18:29:22 -0400 Subject: on_window_open(userdata ShiftOSDesktop, string) and on_window_close(userdata ShiftOSDesktop, string) now report window GUIDs to their handlers instead of userdata Form objects. You can now use get_window(string) to get a Form from a window GUID. --- source/WindowsFormsApplication1/Controls/WindowBorder.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'source/WindowsFormsApplication1/Controls') diff --git a/source/WindowsFormsApplication1/Controls/WindowBorder.cs b/source/WindowsFormsApplication1/Controls/WindowBorder.cs index ccd86ee..50f245d 100644 --- a/source/WindowsFormsApplication1/Controls/WindowBorder.cs +++ b/source/WindowsFormsApplication1/Controls/WindowBorder.cs @@ -785,6 +785,7 @@ namespace ShiftOS WindowComposition.CloseForm(this.ParentForm, pbtn, API.CurrentSkin.WindowCloseAnimation); } API.CurrentSession.InvokeWindowOp("close", this.ParentForm); + API.OpenGUIDs.Remove(this.ParentForm); } } #endregion -- cgit v1.2.3