mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
Make buttons unpress when the cursor leaves the button rect.
Implement this functionality by adding global cursor tracking. It's currently only possible for one GWidget per GWindow to track the cursor.
This commit is contained in:
parent
15fad649ea
commit
069d21ed7f
Notes:
sideshowbarker
2024-07-19 15:56:04 +09:00
Author: https://github.com/awesomekling
Commit: 069d21ed7f
15 changed files with 105 additions and 7 deletions
|
@ -56,3 +56,9 @@ int gui_notify_paint_finished(int window_id, const GUI_Rect* rect)
|
|||
int rc = syscall(SC_gui_notify_paint_finished, window_id, rect);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int gui_set_global_cursor_tracking_enabled(int window_id, bool enabled)
|
||||
{
|
||||
int rc = syscall(SC_gui_set_global_cursor_tracking_enabled, window_id, enabled);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue