Skip to content
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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

AlexKnauth
Copy link

  • 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.

@jaredoconnell
Copy link
Contributor

What is the intended use of these features?
These types of features are not the easiest to test.

@AlexKnauth
Copy link
Author

AlexKnauth commented May 21, 2024

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)

@AlexKnauth
Copy link
Author

For testing these features, would it help more to add a new example to druid/examples, or to modify an existing example like input_region.rs?

@jacksongoode
Copy link

jacksongoode commented Jul 27, 2024

@linebender @cmyr Would it make sense to set someone as a maintainer of this project so new fixes and PR's can come in?

@jaredoconnell
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants