(Windows) Finally properly 'swallows' event when doubleclicking on titlebar

This commit is contained in:
twinaphex 2016-07-16 18:09:21 +02:00
parent ce6f3f955c
commit eb77f99e1e

View File

@ -221,11 +221,11 @@ static void dinput_poll(void *data)
di->mouse_x = di->window_pos_x;
di->mouse_y = di->window_pos_y;
if (!mouse_state.rgbButtons[0])
unset_doubleclick_on_titlebar();
if (doubleclick_on_titlebar_pressed())
{
di->mouse_l = 0;
unset_doubleclick_on_titlebar();
}
else
di->mouse_l = mouse_state.rgbButtons[0];
di->mouse_r = mouse_state.rgbButtons[1];