mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-10 09:05:58 +01:00
internal: fix fullscreen typos (#7134)
modified: src/events/Windows.cpp modified: src/layout/DwindleLayout.cpp
This commit is contained in:
parent
60571cd5cc
commit
c8873b958d
2 changed files with 3 additions and 3 deletions
|
@ -487,9 +487,9 @@ void Events::listener_mapWindow(void* owner, void* data) {
|
||||||
PWINDOW->m_fDimPercent.setValueAndWarp(0);
|
PWINDOW->m_fDimPercent.setValueAndWarp(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (requestedClientFSMode.has_value() && !(PWINDOW->m_eSuppressedEvents & SUPPRESS_FULLSCREEN))
|
if (requestedClientFSMode.has_value() && (PWINDOW->m_eSuppressedEvents & SUPPRESS_FULLSCREEN))
|
||||||
requestedClientFSMode = (eFullscreenMode)((uint8_t)requestedClientFSMode.value_or(FSMODE_NONE) & ~(uint8_t)FSMODE_FULLSCREEN);
|
requestedClientFSMode = (eFullscreenMode)((uint8_t)requestedClientFSMode.value_or(FSMODE_NONE) & ~(uint8_t)FSMODE_FULLSCREEN);
|
||||||
if (requestedClientFSMode.has_value() && !(PWINDOW->m_eSuppressedEvents & SUPPRESS_MAXIMIZE))
|
if (requestedClientFSMode.has_value() && (PWINDOW->m_eSuppressedEvents & SUPPRESS_MAXIMIZE))
|
||||||
requestedClientFSMode = (eFullscreenMode)((uint8_t)requestedClientFSMode.value_or(FSMODE_NONE) & ~(uint8_t)FSMODE_MAXIMIZED);
|
requestedClientFSMode = (eFullscreenMode)((uint8_t)requestedClientFSMode.value_or(FSMODE_NONE) & ~(uint8_t)FSMODE_MAXIMIZED);
|
||||||
|
|
||||||
if (!PWINDOW->m_bNoInitialFocus && (requestedInternalFSMode.has_value() || requestedClientFSMode.has_value() || requestedFSState.has_value())) {
|
if (!PWINDOW->m_bNoInitialFocus && (requestedInternalFSMode.has_value() || requestedClientFSMode.has_value() || requestedFSState.has_value())) {
|
||||||
|
|
|
@ -926,7 +926,7 @@ void CHyprDwindleLayout::switchWindows(PHLWINDOW pWindow, PHLWINDOW pWindow2) {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const eFullscreenMode MODE1 = pWindow->m_sFullscreenState.internal;
|
const eFullscreenMode MODE1 = pWindow->m_sFullscreenState.internal;
|
||||||
const eFullscreenMode MODE2 = pWindow->m_sFullscreenState.internal;
|
const eFullscreenMode MODE2 = pWindow2->m_sFullscreenState.internal;
|
||||||
|
|
||||||
g_pCompositor->setWindowFullscreenInternal(pWindow, FSMODE_NONE);
|
g_pCompositor->setWindowFullscreenInternal(pWindow, FSMODE_NONE);
|
||||||
g_pCompositor->setWindowFullscreenInternal(pWindow2, FSMODE_NONE);
|
g_pCompositor->setWindowFullscreenInternal(pWindow2, FSMODE_NONE);
|
||||||
|
|
Loading…
Reference in a new issue