MCPcopy Create free account
hub / github.com/ElectroZybr/LatticeLab / applyWindowedState

Method applyWindowedState

App/WindowController.cpp:190–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void WindowController::applyWindowedState() {
191 if (!window) {
192 return;
193 }
194
195 int targetX = windowedX;
196 int targetY = windowedY;
197 int targetWidth = windowedWidth;
198 int targetHeight = windowedHeight;
199 if (windowedWasMaximized) {
200 if (GLFWmonitor* monitor = monitorByIndex(windowedMonitorIndex)) {
201 monitorWorkArea(monitor, targetX, targetY, targetWidth, targetHeight);
202 }
203 }
204
205 glfwSetWindowMonitor(window, nullptr, targetX, targetY, targetWidth, targetHeight, GLFW_DONT_CARE);
206 if (windowedWasMaximized) {
207 glfwMaximizeWindow(window);
208 }
209 glfwFocusWindow(window);
210}
211
212void WindowController::applyFullscreen(GLFWmonitor* monitor) {
213 if (!window || !monitor) {

Callers

nothing calls this directly

Calls 1

monitorWorkAreaFunction · 0.85

Tested by

no test coverage detected