Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

SetIgnoreMouseEvents: implement on Linux and support forwarding mouse moves

Đang mở
#67 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp, linux, macos
Lĩnh vực
desktop, operating-systems

Hướng nghiên cứu

Start with Window::SetIgnoreMouseEvents() in src/platform/linux/window_linux.cpp and inspect the existing SetInputShape() implementation. Read leanflutter/window_manager#94 and #96 for the Linux and forwarding context. Done means the Linux stub is implemented and the requested forward behavior is addressed across the supported platforms, with the scope and platform approach resolved.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Window::SetIgnoreMouseEvents():

  • is a stub on Linux (src/platform/linux/window_linux.cpp); an input shape (gdk_window_input_shape_combine_region with an empty region) would do it
  • has no forward option. Electron's setIgnoreMouseEvents(true, {forward: true}) still delivers mouse-move events while clicks pass through, so an overlay can detect hovering over its interactive parts and turn click-through off there. On macOS that's a tracking area or a global mouse monitor; on Windows, WS_EX_TRANSPARENT plus a low-level mouse hook or polling.

SetInputShape() (Linux-only so far) covers the "only these regions are clickable" case, and could be a better answer on macOS/Windows too.

Background:

  • leanflutter/window_manager#96: the forward parameter does nothing
  • leanflutter/window_manager#94: implement setIgnoreMouseEvents on Linux
Ngôn ngữ chính
C++
Star
34
Fork
7
Merge trung bình
3 ngày 1 giờ
Pull request đã merge (30 ngày)
1

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của libnativeapi/nativeapi

Tất cả issue của libnativeapi/nativeapi

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.