-
Notifications
You must be signed in to change notification settings - Fork 569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add set_mouse_pass_through and is_foreground_window #2402
Conversation
What is the intended use of these features? |
My intended use is for LiveSplit One, which is a speedrun timer meant to be used while playing a game. If a user is playing the game using their mouse, they will want their mouse events to pass through the timer window (which will be semi-transparent). They will not want to be able to accidentally click on the timer and have that pull focus away from their game. (Edit: Similar to the "Ignore Mouse While Running and Not In Focus" setting in the Windows version of LiveSplit) |
f47adb8
to
40aed37
Compare
For testing these features, would it help more to add a new example to |
@linebender @cmyr Would it make sense to set someone as a maintainer of this project so new fixes and PR's can come in? |
I believe the current intention is to archive the project once Xilem is a reasonable replacement of Druid. At that point, if someone would like to fork the project, that's the only path forward. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The input_region
example modification seems somewhat flakey, as once the passthrough gets switched on I can't switch it back off even if the window is in the foreground again.
Even so, the code in this PR doesn't really break any existing features and has some value, so I'll go ahead and merge.
Thanks!
set_mouse_pass_through
sets whether the mouse passes through the window to whatever is behind.is_foreground_window
returns true if the window is the foreground window or this is unknown, and returns false if a different window is known to be the foreground window.