Howdy,
I noticed some issues when trying to minimize MiniPixel on Linux. (MiniPixel is so awesome I hadn't tried to minimize it before now. ๐ )
Here is a .gif of what happens when the window's minimize button is clicked.
The window loses focus but the immediately seems to un-minimize itself. Additionally if I go to another desktop, I can see it show up in the task bar which generally only happens if an application is trying to get attention.
I have zero SDL experience, but my guess is that the SdlWindow.draw()
call is sees that the window is hidden and tells the window manager to show it:
|
if (c.SDL_GetWindowFlags(self.handle) & c.SDL_WINDOW_HIDDEN != 0) { |
|
c.SDL_ShowWindow(self.handle); |
|
} |
I made a small change here, shadeops@9728a1a, which avoids the SdlWindow.draw()
call entirely if minimized.
Note - This doesn't appear to be a problem with 0.2.1 on Windows.
OS: Kubuntu 20.04
Head: f5f0195