diff options
author | fvogel <fvogelnew1@free.fr> | 2019-08-26 10:01:17 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2019-08-26 10:01:17 (GMT) |
commit | cc20d8e7206d31689da6dc6f795c282e3a94b8bf (patch) | |
tree | 22400beab4ccaefabaa5c1f1bd672fff529340fe /win | |
parent | e5845ff546364f25ae5975f00bf7e2756f4d692d (diff) | |
download | tk-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.c | 23 |
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 |