From 8750f93201493ba8e50d03c92c62303d173529a7 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 7 May 2019 03:56:54 +0200 Subject: [PATCH] WindowServer: Don't invalidate the cursor on left button state change. This was needed back when pressing the left button would cause the cursor to switch colors. --- Servers/WindowServer/WSScreen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Servers/WindowServer/WSScreen.cpp b/Servers/WindowServer/WSScreen.cpp index 2bff83f290..210da79663 100644 --- a/Servers/WindowServer/WSScreen.cpp +++ b/Servers/WindowServer/WSScreen.cpp @@ -79,8 +79,8 @@ void WSScreen::on_receive_mouse_data(int dx, int dy, unsigned buttons) auto message = make(WSEvent::MouseMove, m_cursor_location, buttons, MouseButton::None, m_modifiers); WSEventLoop::the().post_event(WSWindowManager::the(), move(message)); } - // NOTE: Invalidate the cursor if it moved, or if the left button changed state (for the cursor color inversion.) - if (m_cursor_location != prev_location || changed_buttons & (unsigned)MouseButton::Left) + + if (m_cursor_location != prev_location) WSWindowManager::the().invalidate_cursor(); }