SetIgnoreMouseEvents: implement on Linux and support forwarding mouse moves
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ả
Window::SetIgnoreMouseEvents():
- is a stub on Linux (
src/platform/linux/window_linux.cpp); an input shape (gdk_window_input_shape_combine_regionwith an empty region) would do it - has no
forwardoption. Electron'ssetIgnoreMouseEvents(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_TRANSPARENTplus 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của libnativeapi/nativeapi
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
libnativeapi/nativeapi#81 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
libnativeapi/nativeapi#80 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
libnativeapi/nativeapi#79 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
libnativeapi/nativeapi#78 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
libnativeapi/nativeapi#77 ·
Tất cả issue của libnativeapi/nativeapi
Issue tương tự
-
AuTest Bug Tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/trafficserver#13714 ·
-
bug build
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
facebookincubator/velox#19143 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
tenstorrent/tt-metal#57393 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
objectionary/eo-graphs#74 ·