dont fullscreen when already fullscreen

This commit is contained in:
vaxerski 2022-02-28 17:07:12 +01:00
parent 4cfd62b72e
commit 13744ae7c8

View file

@ -2174,6 +2174,11 @@ void CWindowManager::toggleWindowFullscrenn(const int& window) {
const auto MONITOR = getMonitorFromWindow(PWINDOW); const auto MONITOR = getMonitorFromWindow(PWINDOW);
if (getWorkspaceByID(activeWorkspaces[MONITOR->ID])->getHasFullscreenWindow() && !PWINDOW->getFullscreen()) {
Debug::log(LOG, "Not making a window fullscreen because there already is one!");
return;
}
setAllWorkspaceWindowsDirtyByID(activeWorkspaces[MONITOR->ID]); setAllWorkspaceWindowsDirtyByID(activeWorkspaces[MONITOR->ID]);
PWINDOW->setFullscreen(!PWINDOW->getFullscreen()); PWINDOW->setFullscreen(!PWINDOW->getFullscreen());