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 setWindowOrigin command #1399

Merged
merged 1 commit into from
Mar 10, 2025
Merged

Conversation

slipher
Copy link
Member

@slipher slipher commented Oct 27, 2024

Could be useful in scripting automatic testing and stuff. I can put it at, say, (-2000 -2000) to make the window not visible. (Tested on Windows; not sure if that works on all systems.)

@DolceTriade
Copy link
Contributor

We should probably test this elsewhere

@slipher
Copy link
Member Author

slipher commented Mar 7, 2025

Now tested. On Linux (KDE, Wayland), it works. You can place the window completely off-screen in any direction.
On Mac it also works. The window can't be moved past the top of the screen (y is clamped to 0). It can be placed partially off the 3 other sides but is clamped at the point where just a little bit of the window remains on-screen.

On all systems, screenshots work even if the window is offscreen. (This was a concern for me even since screenshots while minimized often don't work.)

@slipher slipher merged commit b323b53 into DaemonEngine:master Mar 10, 2025
9 checks passed
@slipher slipher deleted the setwindoworigin branch March 10, 2025 22:41
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.

2 participants