Open pouryatorabi opened 5 years ago
If I omit the pollevent loop, it won't minimize but my mouse cursor would show a busy indicator, only on windows.
Hi @pouryatorabi, have you tried setting SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS
environment variable to 0
?
For example, could you try running the following command and see if it still minimize?
SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 [the program]
I just made an environmental variable, SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS, and put the value to 0. I tested again but still have problem. Another thing bothering me is that if I don't handle the events, my mouse cursor would show a busy indicator in Windows, but I don't have this problem on Ubuntu, is there anyway to solve it?
Hmm I see. Perhaps it only works on Linux. Have you tried using sdl.WINDOW_FULLSCREEN_DESKTOP
instead of sdl.WINDOW_FULLSCREEN
in your sdl.CreateWindow()
function?
I have tested them all, no luck.
I have created a window in my secondary monitor, when I click in my Main monitor, the created window will minimize. This is my code: