jfduke3d icon indicating copy to clipboard operation
jfduke3d copied to clipboard

Cannot get fullscreen on secondary display on macOS

Open sampumon opened this issue 4 years ago • 5 comments
trafficstars

Fullscreen always goes to primary display, and blanks secondary display. Cannot even switch windows when in fullscreen, cmd+tab does not work 😅

Tried exiting fullscreen in game options, moving window to secondary display, and going back fullscreen. Same.

Startup configuration only displays resolutions for primary display.

Macbook Air 2014, macOS 11.3, jfduke 20210130.

sampumon avatar May 04 '21 16:05 sampumon

As it's currently implemented, the query for resolutions references the primary display and I'll need to think about how that assumption might be changed.

jonof avatar May 05 '21 09:05 jonof

Yes but there is something fundamentally weird going on, as fullscreen should not blank the other screen and disable window switching, ie. cmd+tab, three-finger-swipe and mission control (F3 & F4).

Eduke32 does fullscreen correctly. Maybe you're using a deprecated api?

sampumon avatar May 05 '21 09:05 sampumon

I'm guessing you're set for a 32-bit video mode. I presume it behaves more like you're looking for when in 8-bit fullscreen mode, no?

jonof avatar May 05 '21 10:05 jonof

Wow yes it does! Can get fullscreen on secondary display in 8-bit and even switch windows!

Only problem is that maximum resolution is that of primary display (1440x900), and fullscreen Jfduke is a box of that size on lower left corner of secondary display (1920x1200) 🥲

sampumon avatar May 05 '21 10:05 sampumon

Right, so that's the difference between 'fullscreen desktop' (8-bit) and 'fullscreen' (32-bit) modes. And it seems that something has changed to break the upscale SDL seemed to once do to fill the screen. sigh

jonof avatar May 05 '21 10:05 jonof