添加鼠标事件拦截

This commit is contained in:
2025-09-02 22:42:47 +08:00
parent ac91ebbed3
commit 55c3fa1156
5 changed files with 60 additions and 0 deletions

View File

@@ -159,3 +159,6 @@ void set_pointer_position(int32_t x, int32_t y);
* @brief 非阻塞检查特定事件掩码(模拟 XCheckMaskEvent
*/
bool xcb_check_mask_event(xcb_event_mask_t event_mask);
void ungrab_any_button(xcb_window_t window);
void grab_button(xcb_window_t window, uint8_t button, uint16_t modifiers);