forked from AuroraMiddleware/gtk
win32: Fix missed resize exit message
When you start a window resize or move via the window menu and don't actually change anything we're not getting an exitsizemove. In order to work around this we also look for WM_CAPTURECHANGED.
This commit is contained in:
parent
2dfd498fd8
commit
b0d108a5c4
@ -2858,6 +2858,15 @@ gdk_event_translate (MSG *msg,
|
||||
|
||||
case WM_EXITSIZEMOVE:
|
||||
case WM_EXITMENULOOP:
|
||||
if (_modal_operation_in_progress)
|
||||
_gdk_win32_end_modal_call ();
|
||||
break;
|
||||
|
||||
case WM_CAPTURECHANGED:
|
||||
/* Sometimes we don't get WM_EXITSIZEMOVE, for instance when you
|
||||
select move/size in the menu and then click somewhere without
|
||||
moving/resizing. We work around this using WM_CAPTURECHANGED. */
|
||||
if (_modal_operation_in_progress)
|
||||
_gdk_win32_end_modal_call ();
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user