GdkWin32: Return TRUE when processing WM_XBUTTONDOWN/UP messages

As documented on MSDN:

> Unlike the WM_LBUTTONUP, WM_MBUTTONUP, and WM_RBUTTONUP messages, an
> application should return TRUE from this message if it processes it.
This commit is contained in:
Luca Bacci 2022-10-06 11:26:50 +02:00
parent f4286e8f1a
commit d6f7449636

View File

@ -2229,6 +2229,7 @@ gdk_event_translate (MSG *msg,
generate_button_event (GDK_BUTTON_PRESS, button,
window, msg);
*ret_valp = (msg->message == WM_XBUTTONDOWN ? TRUE : 0);
return_val = TRUE;
break;
@ -2312,6 +2313,7 @@ gdk_event_translate (MSG *msg,
mouse_window_ignored_leave = NULL;
}
*ret_valp = (msg->message == WM_XBUTTONUP ? TRUE : 0);
return_val = TRUE;
break;
}