mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 10:41:30 +00:00
WindowServer: Re-evaluate the mouse cursor when alpha hit-testing
A window repaint may change the alpha value, resulting in a different hit test outcome. In those cases, re-evaluate the cursor hit testing after a window was painted, and update the cursor if needed.
This commit is contained in:
parent
bd830c2dfe
commit
2d29bfc89e
Notes:
sideshowbarker
2024-07-18 22:01:58 +09:00
Author: https://github.com/tomuta
Commit: 2d29bfc89e
Pull-request: https://github.com/SerenityOS/serenity/pull/5461
Reviewed-by: https://github.com/awesomekling
4 changed files with 60 additions and 5 deletions
|
@ -189,7 +189,7 @@ public:
|
|||
|
||||
bool update_theme(String theme_path, String theme_name);
|
||||
|
||||
void set_hovered_window(Window*);
|
||||
bool set_hovered_window(Window*);
|
||||
void deliver_mouse_event(Window& window, MouseEvent& event, bool process_double_click);
|
||||
|
||||
void did_popup_a_menu(Badge<Menu>);
|
||||
|
@ -234,6 +234,9 @@ public:
|
|||
int compositor_icon_scale() const;
|
||||
void reload_icon_bitmaps_after_scale_change(bool allow_hidpi_icons = true);
|
||||
|
||||
void reevaluate_hovered_window(Window* = nullptr);
|
||||
Window* hovered_window() const { return m_hovered_window.ptr(); }
|
||||
|
||||
private:
|
||||
NonnullRefPtr<Cursor> get_cursor(const String& name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue