mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
WindowServer: Only the left mouse button should initiate window drag.
This commit is contained in:
parent
eedfb2649e
commit
495c4f940d
1 changed files with 1 additions and 1 deletions
|
@ -786,7 +786,7 @@ void WSWindowManager::process_mouse_event(WSMouseEvent& event, WSWindow*& event_
|
||||||
handle_close_button_mouse_event(window, event);
|
handle_close_button_mouse_event(window, event);
|
||||||
return IterationDecision::Abort;
|
return IterationDecision::Abort;
|
||||||
}
|
}
|
||||||
if (event.type() == WSMessage::MouseDown)
|
if (event.type() == WSMessage::MouseDown && event.button() == MouseButton::Left)
|
||||||
start_window_drag(window, event);
|
start_window_drag(window, event);
|
||||||
return IterationDecision::Abort;
|
return IterationDecision::Abort;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue