diff options
author | fvogel <fvogelnew1@free.fr> | 2019-08-28 20:12:39 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2019-08-28 20:12:39 (GMT) |
commit | 1dd886e5882026dc5c89cb801251c13cfa070238 (patch) | |
tree | 158cf25bc46767a9b762ecd609fbaa28e49ffde5 /win | |
parent | b11c06fd0f8e1a52abeffb9aa2a9ee4055e35e83 (diff) | |
parent | d4ee00e26e9b7ab6c7eb33ef4c8e1c29ff73aa1e (diff) | |
download | tk-1dd886e5882026dc5c89cb801251c13cfa070238.zip tk-1dd886e5882026dc5c89cb801251c13cfa070238.tar.gz tk-1dd886e5882026dc5c89cb801251c13cfa070238.tar.bz2 |
Fix [943d5ebe51]: Destroying a widget cancels resizing of main window on Windows.
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 8ab512c..896500c 100644 --- a/win/tkWinPointer.c +++ b/win/tkWinPointer.c @@ -567,6 +567,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. + * + *---------------------------------------------------------------------- + */ + +Tk_Window +TkpGetCapture(void) +{ + return Tk_HWNDToWindow(GetCapture()); +} + +/* * Local Variables: * mode: c * c-basic-offset: 4 |