You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Exclusive fullscreen mode not possible anymore #2095
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.
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.
@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.
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.
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
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.
@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.
Activity
robertpfeiffer commentedon Apr 6, 2023
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.
fladd commentedon Jul 31, 2023
@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.
fladd commentedon Feb 13, 2025
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.
ankith26 commentedon Jun 14, 2025
Hello, sorry for the late reply. It is possible to use non desktop fullscreen with the
pygame.WindowAPI which was made public in pygame-ce 2.5.2For 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.displayAPI 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 workfladd commentedon Jul 30, 2026
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.
fladd commentedon Oct 14, 2026
@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_modeto 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.