Skip to content

Add setWindowOrigin command#1399

Merged
slipher merged 1 commit intoDaemonEngine:masterfrom
slipher:setwindoworigin
Mar 10, 2025
Merged

Add setWindowOrigin command#1399
slipher merged 1 commit intoDaemonEngine:masterfrom
slipher:setwindoworigin

Conversation

@slipher
Copy link
Copy Markdown
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
Copy Markdown
Contributor

We should probably test this elsewhere

@slipher
Copy link
Copy Markdown
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