mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
WindowServer: Initiating a window drag/resize should also make frontmost.
This commit is contained in:
parent
684c52941d
commit
b1c272a507
1 changed files with 4 additions and 0 deletions
|
@ -784,10 +784,14 @@ void WSWindowManager::process_mouse_event(WSMouseEvent& event, WSWindow*& event_
|
|||
for_each_visible_window_from_front_to_back([&] (WSWindow& window) {
|
||||
if (window.type() == WSWindowType::Normal && outer_window_rect(window).contains(event.position())) {
|
||||
if (m_keyboard_modifiers == Mod_Logo && event.type() == WSMessage::MouseDown && event.button() == MouseButton::Left) {
|
||||
move_to_front(window);
|
||||
set_active_window(&window);
|
||||
start_window_drag(window, event);
|
||||
return IterationDecision::Abort;
|
||||
}
|
||||
if (m_keyboard_modifiers == Mod_Logo && event.type() == WSMessage::MouseDown && event.button() == MouseButton::Right) {
|
||||
move_to_front(window);
|
||||
set_active_window(&window);
|
||||
start_window_resize(window, event);
|
||||
return IterationDecision::Abort;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue