WindowServer: Only the left mouse button should initiate window drag.

This commit is contained in:
Andreas Kling 2019-03-06 22:38:19 +01:00
commit 495c4f940d
Notes: sideshowbarker 2024-07-19 15:09:21 +09:00

View file

@ -786,7 +786,7 @@ void WSWindowManager::process_mouse_event(WSMouseEvent& event, WSWindow*& event_
handle_close_button_mouse_event(window, event);
return IterationDecision::Abort;
}
if (event.type() == WSMessage::MouseDown)
if (event.type() == WSMessage::MouseDown && event.button() == MouseButton::Left)
start_window_drag(window, event);
return IterationDecision::Abort;
}