pete-gordon / oricutron

Portable Oric-1/Atmos/Telestrat and Pravetz 8D emulator
http://www.petergordon.org.uk/oricutron/
GNU General Public License v2.0
69 stars 25 forks source link

Recenter the window when exiting fullscreen mode #150

Closed rzumer closed 4 years ago

rzumer commented 4 years ago

This moves the window back to the center of the display instead of to (0, 0) when exiting fullscreen mode, which has the side effect of hiding the title bar if it is present.

As far as I can tell, Oricutron is meant to remember the coordinates of the window when entering fullscreen mode, and restore the window to those coordinates after exiting it. However it doesn't seem to be fully implemented and as a result, the window is placed at (0, 0). Instead of outright removing the mechanism to save the coordinates, this adds an extra bit of logic that could be removed later if the desired functionality is fully implemented.

iss000 commented 4 years ago

This actually works very well!