aboutsummaryrefslogtreecommitdiff
path: root/source/WindowsFormsApplication1/Controls/WindowBorder.cs
diff options
context:
space:
mode:
authorMichaelTheShifter <[email protected]>2016-07-05 18:29:22 -0400
committerMichaelTheShifter <[email protected]>2016-07-05 18:29:22 -0400
commitb2b7d4c442dffc518f0f29d3fabb9c06ea9c4229 (patch)
tree60eaef98a9bfe60748b457471970e8ec5c54fd53 /source/WindowsFormsApplication1/Controls/WindowBorder.cs
parentad0e84c4be1411321e36a9f6ab022195c0d006b3 (diff)
downloadshiftos-c-_theultimatehacker-b2b7d4c442dffc518f0f29d3fabb9c06ea9c4229.tar.gz
shiftos-c-_theultimatehacker-b2b7d4c442dffc518f0f29d3fabb9c06ea9c4229.tar.bz2
shiftos-c-_theultimatehacker-b2b7d4c442dffc518f0f29d3fabb9c06ea9c4229.zip
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.
Diffstat (limited to 'source/WindowsFormsApplication1/Controls/WindowBorder.cs')
-rw-r--r--source/WindowsFormsApplication1/Controls/WindowBorder.cs1
1 files changed, 1 insertions, 0 deletions
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