MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / MinimizeWindow

Method MinimizeWindow

System/LemonWM/wm.cpp:37–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void 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
54void WMInstance::MinimizeWindow(int id, bool state){
55 WMWindow* win = FindWindow(id);

Callers

nothing calls this directly

Calls 2

SetWindowStateFunction · 0.85
MinimizeMethod · 0.45

Tested by

no test coverage detected