mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
WindowServer+LibGUI: Implement automatic cursor tracking.
When a mouse button is pressed inside a window, put that window into an automatic mouse tracking state where all mouse events are sent to that window until all mouse buttons are released. This might feel even better if it only cared about the mouse buttons you actually pressed while *inside* the windows to get released, I don't know. I'll have to use it for a while and see how it's like.
This commit is contained in:
@@ -39,7 +39,6 @@ private:
|
||||
RetainPtr<GraphicsBitmap> m_icon;
|
||||
GButtonStyle m_button_style { GButtonStyle::Normal };
|
||||
bool m_being_pressed { false };
|
||||
bool m_tracking_cursor { false };
|
||||
bool m_hovered { false };
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user