3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-03-03 13:54:45 +00:00

Added fullscreen types, maximize and full

This commit is contained in:
vaxerski
2022-05-29 15:44:30 +02:00
parent fdb3f610e5
commit 227cbb0464
9 changed files with 47 additions and 15 deletions

View File

@ -295,7 +295,7 @@ void CKeybindManager::fullscreenActive(std::string args) {
if (!g_pCompositor->windowValidMapped(PWINDOW))
return;
g_pLayoutManager->getCurrentLayout()->fullscreenRequestForWindow(PWINDOW);
g_pLayoutManager->getCurrentLayout()->fullscreenRequestForWindow(PWINDOW, args == "1" ? eFullscreenMode::FULLSCREEN_MAXIMIZED : eFullscreenMode::FULLSCREEN_FULL);
g_pXWaylandManager->setWindowFullscreen(PWINDOW, PWINDOW->m_bIsFullscreen);