I am using pygame to make a game on a Mac. I am trying to get my window to fill the screen without going fullscreen. The problem is that the height of Dock at the bottom and the Topbar are not subtracted when I used pygame.display.get_surface().get_size()
(which returned 1366x 768). I know that Dock size varies from MacBook to MacBook because people change it and I am trying to make my game work seamlessly on all of classmates' MacBooks as well as their Windows computers.
I want to get screen size excluding the Dock/Topbar on Mac and the Taskbar on windows. I've seen a thread on how to do it in Java linked here, but I cannot seem to find anything about it for Python.