mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 05:25:58 +01:00
dont fullscreen when already fullscreen
This commit is contained in:
parent
4cfd62b72e
commit
13744ae7c8
1 changed files with 5 additions and 0 deletions
|
@ -2174,6 +2174,11 @@ void CWindowManager::toggleWindowFullscrenn(const int& window) {
|
|||
|
||||
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]);
|
||||
|
||||
PWINDOW->setFullscreen(!PWINDOW->getFullscreen());
|
||||
|
|
Loading…
Reference in a new issue