cog icon indicating copy to clipboard operation
cog copied to clipboard

Fullscreen support

Open philn opened this issue 7 years ago • 6 comments

It would be nice to have a command-line option for this. And also one to be able to specify the default window size.

philn avatar Jun 06 '18 15:06 philn

There's an env var, already, I think that's a good start :) Would be nice though to have runtime keyboard shortcuts so we can easily toggle between fullscreen states.

philn avatar Jun 26 '18 16:06 philn

Default window size also has env vars, good for me!

philn avatar Jun 26 '18 16:06 philn

@philn, F11 should toggle fullscreen. It is currently hardcoded in -fdo.

elima avatar Jun 26 '18 18:06 elima

Sweet, so... what's left for this issue? Not much it seems :)

philn avatar Jun 26 '18 19:06 philn

Well, it would be better that the feature is not tied to the FDO platform only; which would need solving #22, I'd say.

aperezdc avatar Jun 26 '18 22:06 aperezdc

I couldn't find any documentation for these env vars, the ones defined here seem to be the ones used for fullscreen: https://github.com/Igalia/cog/blob/6f1be78103323bc9e0964b73372e017b6c1b1cb5/platform/cog-platform-fdo.c

For example COG_PLATFORM_FDO_VIEW_FULLSCREEN=1 cog -P fdo https://threejs.org/examples/#webgl_terrain_dynamic worked for me, using weston with the default desktop shell.

Hope that helps anyone who is looking for how to run this fullscreen

concreted avatar Aug 22 '19 02:08 concreted

Today's equivalent would be COG_PLATFORM_WL_VIEW_FULLSCREEN=1 cog -P wl https://threejs.org/examples/#webgl_terrain_dynamic

davidperrenoud avatar Jan 08 '23 14:01 davidperrenoud

Documentation for Wayland platform in: https://github.com/Igalia/cog/blob/master/docs/platform-wl.md

manuelafm avatar Jan 08 '23 22:01 manuelafm

I will close this tentatively, as we have ways for:

  • Setting default window size.
  • Setting fullscreen.
  • Toggling fullscreen with F11.

While not all plug-ins support those, we can use new issues to tackle that, like #22 mentioned earlier.

aperezdc avatar Mar 22 '23 23:03 aperezdc