Skip to content

feat(window): add command to set fullscreen on specific monitor#14926

Open
Oscar3170 wants to merge 1 commit intotauri-apps:devfrom
Oscar3170:feat/set-fullscreen-on-monitor
Open

feat(window): add command to set fullscreen on specific monitor#14926
Oscar3170 wants to merge 1 commit intotauri-apps:devfrom
Oscar3170:feat/set-fullscreen-on-monitor

Conversation

@Oscar3170
Copy link
Copy Markdown

Add a new command to the window core plugin set_fullscreen_on_monitor which receives a position and sets the window as fullscreen on the monitor that contains the position.

Since tao already exposes a way to specify the monitor for the fullscreen function, it was only necessary to expose this parameter in the tauri-runtime-wry and window plugin.

Since monitor names are not unique the new function needs the monitor's position to know which monitor we actually want.

This is the most useful on wayland systems, since the window can't move itself any other way, and this at least gives an option for applications that need to be fullscreen.

Workaround for issues: #14019 and #7376.

@Oscar3170 Oscar3170 requested a review from a team as a code owner February 11, 2026 15:06
@github-project-automation github-project-automation Bot moved this to 📬Proposal in Roadmap Feb 11, 2026
@Oscar3170
Copy link
Copy Markdown
Author

Oscar3170 commented Feb 11, 2026

The naming and function parameters could cause confusion, since the other set_fullscreen functions can set the fullscreen state on or off, while this new function only sets fullscreen on.

I figured it would be best to leave the job of turning off the fullscreen state to the regular set_fullscreen function, since the monitor is irrelevant in this case.

Be free to give feedback on if I should change the name or add a bool parameter to the function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📬Proposal

Development

Successfully merging this pull request may close these issues.

1 participant