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

donotdisturb: fix for GNOME #571

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

rhendric
Copy link
Contributor

GNOME Shell (on Wayland) doesn't work with wlrctl, but there is a DBus property that can be read to see if any application has requested that the screensaver not kick in, so let's use that to suppress SafeEyes breaks too—it's not exactly the same as detecting if the active window is fullscreen, but I actually think it's a little better (if a productivity application is fullscreened, we probably want breaks; if a real-time game is running in a window, we probably don't).

I'm using the Gio interface to DBus instead of dbus-python, per the direction proposed in #558.

@rhendric
Copy link
Contributor Author

Poke?

@nifadyev nifadyev added the fix Pull request to fix a bug label Jun 26, 2024
Copy link
Collaborator

@deltragon deltragon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the fix!

@deltragon deltragon merged commit a156cea into slgobinath:master Jun 26, 2024
@rhendric rhendric deleted the rhendric/donotdisturb-gnome branch June 26, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull request to fix a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants