aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMightyPlaza <[email protected]>2024-08-01 12:59:52 +0000
committerGitHub <[email protected]>2024-08-01 14:59:52 +0200
commitc8873b958dd9330c364339ac4ab58e32b27d82b4 (patch)
tree703a31de0db849a69232e5434221575922634c28
parent60571cd5ccc76f91209ef2faac93ecea542de221 (diff)
downloadHyprland-c8873b958dd9330c364339ac4ab58e32b27d82b4.tar.gz
Hyprland-c8873b958dd9330c364339ac4ab58e32b27d82b4.zip
internal: fix fullscreen typos (#7134)
modified: src/events/Windows.cpp modified: src/layout/DwindleLayout.cpp
-rw-r--r--src/events/Windows.cpp4
-rw-r--r--src/layout/DwindleLayout.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index 0389f57e..f5ae6759 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -487,9 +487,9 @@ void Events::listener_mapWindow(void* owner, void* data) {
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);
- 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);
if (!PWINDOW->m_bNoInitialFocus && (requestedInternalFSMode.has_value() || requestedClientFSMode.has_value() || requestedFSState.has_value())) {
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp
index 336c8c68..7253275d 100644
--- a/src/layout/DwindleLayout.cpp
+++ b/src/layout/DwindleLayout.cpp
@@ -926,7 +926,7 @@ void CHyprDwindleLayout::switchWindows(PHLWINDOW pWindow, PHLWINDOW pWindow2) {
return;
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(pWindow2, FSMODE_NONE);