Skip to content

Inhibit Idle when window is maximized#1610

Open
skr4n wants to merge 2 commits intojohnfactotum:gtk4from
skr4n:inhibit-idle-when-maximized
Open

Inhibit Idle when window is maximized#1610
skr4n wants to merge 2 commits intojohnfactotum:gtk4from
skr4n:inhibit-idle-when-maximized

Conversation

@skr4n
Copy link
Copy Markdown

@skr4n skr4n commented Nov 22, 2025

Currently, the application inhibits idle only for full-screen mode.
It would be helpful to have this when the window is maximized as well.

Closes #1609

Currently, the application inhibits idle only for fullscreen mode.
It would be helpful to have this when the window is maximized as well.
@skr4n skr4n force-pushed the inhibit-idle-when-maximized branch from 92c2eb2 to 8f1526c Compare November 22, 2025 15:15
@camelCaseNick
Copy link
Copy Markdown
Contributor

camelCaseNick commented Nov 30, 2025

I would highly suggest also checking for this.is_active() and notify::is-active, because otherwise when Foliate is maximised in the background, e.g. on a different workspace or behind a different window, it will still inhibit the session.

@skr4n
Copy link
Copy Markdown
Author

skr4n commented Nov 30, 2025

I would highly suggest also checking for this.is_active() and notify::is-active, because otherwise when Foliate is maximised in the background, e.g. on a different workspace or behind a different window, it will still inhibit the session.

Fixed. Thanks for pointing it out.

@LibMeow2025
Copy link
Copy Markdown

LibMeow2025 commented Dec 31, 2025

can this be merged please? @johnfactotum

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.

Inhibit system idling while viewing a document in maximized mode

3 participants