w3c / window-management

Window Management API
https://www.w3.org/TR/window-management/
Other
96 stars 25 forks source link

Interactions of fullscreen windows while moving between displays #5

Open cterefinko opened 4 years ago

cterefinko commented 4 years ago

What is the interaction of moving (via moveTo) a fullscreen window to a different display? Ideally this would keep the window fullscreen on the other display. Also, what is the interaction of moving a fullscreen window to a different display that already has a window that is fullscreen?

michaelwasserman commented 2 years ago

We plan to support sites moving their fullscreen window to another display by calling requestFullscreen() again with a new target screen. We should document this in the Explainer and Spec...

Calling moveTo() while fullscreen doesn't seem as clear or ergonomic, and it's somewhat broken on Linux+Chromium right now: moveTo() exits fullscreen but leaves the window maximized and doesn't move it to the requested coordinates, nor are those coordinates applied automatically when the window exits maximized mode. This is less important to address at the moment.