mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +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
15 changed files with 105 additions and 7 deletions
|
@ -217,6 +217,8 @@ static dword handle(RegisterDump& regs, dword function, dword arg1, dword arg2,
|
|||
return current->sys$read_tsc((dword*)arg1, (dword*)arg2);
|
||||
case Syscall::SC_gui_notify_paint_finished:
|
||||
return current->gui$notify_paint_finished((int)arg1, (const GUI_Rect*)arg2);
|
||||
case Syscall::SC_gui_set_global_cursor_tracking_enabled:
|
||||
return current->gui$set_global_cursor_tracking_enabled((int)arg1, (bool)arg2);
|
||||
default:
|
||||
kprintf("<%u> int0x80: Unknown function %u requested {%x, %x, %x}\n", current->pid(), function, arg1, arg2, arg3);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue