Skip to content

Added getWindowSize and getWindowState - #2

Open
hseliger wants to merge 1 commit into
kemallette:masterfrom
hseliger:master
Open

Added getWindowSize and getWindowState#2
hseliger wants to merge 1 commit into
kemallette:masterfrom
hseliger:master

Conversation

@hseliger

@hseliger hseliger commented Sep 3, 2026

Copy link
Copy Markdown

Added two additional methods: getWindowSize to return the position and dimensions of a window in JSON format, and getWindowState to return a JSON with the states of a specific window re. maximized, fullscreen, or minimized.

This is key if trying to save a session and later restore it's state.

Also added Gnome shell versions 49 and 50, as 50 is current (at least for Fedora, which I am using) and the extension does work there.

I am not sure (and cannot easily test) if shell versions before 49 should be removed, and at some point afaik Gnome calls changed, so this current version may break in earlier shell versions.

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.

1 participant