Skip to content

Exclusive fullscreen mode not possible anymore #2095

Open

Description

@fladd

In Pygame 1, fullscreen OpenGL windows used to be in "exclusive" fullscreen mode.
In Pygame 2 they are by default "desktop" fullscreen mode. This is in principle no big problem, however, there is currently no way to make the "exclusive" anymore, due to the code here: https://github.com/pygame-community/pygame-ce/blob/2.2.0/src_c/display.c#L952/

Exclusive fullscreen mode is important, since (at least under Windows) they it seems to be the only way to bypass the compositor.

For more information about why this is important, please see here: pygame/pygame#3619 (comment)

Activity

  1. robertpfeiffer commented on Apr 6, 2023

    @robertpfeiffer
    Contributor

    This is still on our radar, and I think we will address it with the 2.3.0 release by introducing a lower-level windowing API that lets you use old-style full-screen again.

  2. fladd commented on Jul 31, 2023

    @fladd
    ContributorAuthor

    @robertpfeiffer Has this been implemented in 2.3.0? I don't think I saw it in the release notes.
    Is there any (new) timeline of when (or if) this will get fixed? We are currently still holding back on a new release of Expyriment due to this.

  3. fladd commented on Feb 13, 2025

    @fladd
    ContributorAuthor

    Still wondering if this is something that pygame-ce will fix. It has since been fixed in the original pygame, which is why we will stick with this one for the current release. However, if things change on the pygame-ce side, we might still consider switching to it in the future.

  4. ankith26 commented on Jun 14, 2025

    @ankith26
    Member

    Hello, sorry for the late reply. It is possible to use non desktop fullscreen with the pygame.Window API which was made public in pygame-ce 2.5.2

    For advanced usecases such as yours, I would suggest using this newer API as it would give you more fine grained control and comes with a nicer OOP API and multi window support as added benefits. If you find something is missing there that would help your usecases feel free to let us know.

    As for why the original pygame.display API made the jump to defaulting to desktop fullscreen, I'm not fully aware why that was done. I see that upstream pygame has already reverted that and does non desktop fullscreen by default now, but I'm not sure if we should do that in pygame-ce as well, it has the potential to break someones code that relies on desktop fullscreen to work

  5. fladd commented on Jul 30, 2026

    @fladd
    ContributorAuthor

    As for why the original pygame.display API made the jump to defaulting to desktop fullscreen, I'm not fully aware why that was done. I see that upstream pygame has already reverted that and does non desktop fullscreen by default now, but I'm not sure if we should do that in pygame-ce as well, it has the potential to break someones code that relies on desktop fullscreen to work

    You don't have to default to it, but simply offering an option (in the old API) to use exclusive fullscreen mode instead would be very helpful.

  6. fladd commented on Oct 14, 2026

    @fladd
    ContributorAuthor

    @ankith26 @robertpfeiffer I don't seem to be able to set vsync behaviour with the new Window API, or am I missing something? This would be essential for us, as explained in detail here. I still think that simply adding an option to pygame.display.set_mode to force a real exclusive fullscreen would be the easiest solution, as this would ensure compatibility with the "other' pygame, and hence allows pygame-ce to be a drop-in replacement.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    displaypygame.display

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions