| 35 | } |
| 36 | |
| 37 | void WMInstance::MinimizeWindow(WMWindow* win, bool state){ |
| 38 | redrawBackground = true; |
| 39 | |
| 40 | win->Minimize(state); |
| 41 | |
| 42 | if(state == false) { // Showing the window and adding to top |
| 43 | SetActive(win); |
| 44 | } else { // Hiding the window, so if active set not active |
| 45 | if(active == win){ |
| 46 | SetActive(nullptr); |
| 47 | } |
| 48 | |
| 49 | if(shellConnected && !(win->flags & WINDOW_FLAGS_NOSHELL)) |
| 50 | Lemon::Shell::SetWindowState(win->clientID, Lemon::Shell::ShellWindowStateMinimized, shellClient); |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | void WMInstance::MinimizeWindow(int id, bool state){ |
| 55 | WMWindow* win = FindWindow(id); |
nothing calls this directly
no test coverage detected