[Windows/Linux] Implement SetFocusable and SetNonActivating
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- cpp, linux
- Domain
- desktop, operating-systems
Research direction
Locate the platform-specific implementations of Window::SetFocusable() and SetNonActivating(), then inspect the Windows mouse-activation path and the Linux GTK window setup. Compare the behavior with macOS and evaluate the suggested WS_EX_NOACTIVATE/MA_NOACTIVATE and GTK focus APIs. Done means a window can be clicked without taking focus from the app receiving keyboard input on both platforms.
Written by the indexing model from the issue text.
Description
Window::SetFocusable() is a stub on Windows and Linux, and SetNonActivating() only records the flag there. Only macOS implements them. An on-screen keyboard or a floating palette needs a window that can be clicked without taking focus from the app the user is typing into.
Possible implementation: Windows WS_EX_NOACTIVATE (plus MA_NOACTIVATE for WM_MOUSEACTIVATE); Linux gtk_window_set_accept_focus() / gtk_window_set_focus_on_map().
Background:
- leanflutter/window_manager#404: focus issue while building a virtual keyboard (Windows)
- leanflutter/window_manager#317: implement setFocusable
- Dominant language
- C++
- Stars
- 34
- Forks
- 7
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from libnativeapi/nativeapi
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
libnativeapi/nativeapi#81 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
libnativeapi/nativeapi#80 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
libnativeapi/nativeapi#79 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
libnativeapi/nativeapi#78 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
libnativeapi/nativeapi#77 ·
All issues in libnativeapi/nativeapi
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
objectionary/eo-graphs#74 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 88/100
QuantStack/git2cpp#187 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100