summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2019-08-26 10:01:17 (GMT)
committerfvogel <fvogelnew1@free.fr>2019-08-26 10:01:17 (GMT)
commitcc20d8e7206d31689da6dc6f795c282e3a94b8bf (patch)
tree22400beab4ccaefabaa5c1f1bd672fff529340fe /win
parente5845ff546364f25ae5975f00bf7e2756f4d692d (diff)
downloadtk-cc20d8e7206d31689da6dc6f795c282e3a94b8bf.zip
tk-cc20d8e7206d31689da6dc6f795c282e3a94b8bf.tar.gz
tk-cc20d8e7206d31689da6dc6f795c282e3a94b8bf.tar.bz2
Fix [943d5ebe51]: Destroying a widget cancels resizing of main window on Windows. (Note: Branch builds and works on Windows, will not build (yet) on Linux or macOS)
Diffstat (limited to 'win')
-rw-r--r--win/tkWinPointer.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/win/tkWinPointer.c b/win/tkWinPointer.c
index 251b5b9..817d8f3 100644
--- a/win/tkWinPointer.c
+++ b/win/tkWinPointer.c
@@ -544,6 +544,29 @@ TkpSetCapture(
}
/*
+ *----------------------------------------------------------------------
+ *
+ * TkpGetCapture --
+ *
+ * This function requests which window is capturing the mouse.
+ *
+ * Results:
+ * The return value is a pointer to the capture window, if there is
+ * one, otherwise it is NULL.
+ *
+ * Side effects:
+ * None.
+ *
+ *----------------------------------------------------------------------
+ */
+
+TkWindow *
+TkpGetCapture(void)
+{
+ return (TkWindow *) Tk_HWNDToWindow(GetCapture());
+}
+
+/*
* Local Variables:
* mode: c
* c-basic-offset: 4