w3c / window-management

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

Entering fullscreen on a different display requires two calls #4

Closed cterefinko closed 4 years ago

cterefinko commented 4 years ago

The new API seems to indicate that in order to enter fullscreen on a different display, the window must first be moved (via moveTo), and then fullscreen'd (via requestFullscreen). This also seems to imply that after exiting fullscreen, the window would need to be moved back to its original display.

Would be nice to have the two calls combined and to have the window remain on its original display after exiting fullscreen.

cterefinko commented 4 years ago

An alternative that is worth considering more is adding requestFullscreen(Screen) (currently marked as future work). This would take care of combining the two calls and would provide a nicer API than moving via moveTo.

michaelwasserman commented 4 years ago

I have bumped requestFullscreen(Screen) into current goals, thanks for the feedback!