summaryrefslogtreecommitdiff
path: root/src/helpers/Monitor.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-12-13 17:25:19 +0000
committerVaxry <vaxry@vaxry.net>2023-12-13 17:25:19 +0000
commit01e5c59d752d3fe7fa484330fa48e010054b8fa1 (patch)
tree8b635e9724a805cfddf93c25d66924ee524333d2 /src/helpers/Monitor.cpp
parentb2e5a80e2ff1fcbf8164a45c5ef8ebffbb511fae (diff)
Revert "xwayland: push invisible windows outside layout"
This reverts commit accb3d8d0b339ce83dd36704503253d874c7163b. Bad idea
Diffstat (limited to 'src/helpers/Monitor.cpp')
-rw-r--r--src/helpers/Monitor.cpp27
1 files changed, 1 insertions, 26 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp
index 0132db63..c112d07d 100644
--- a/src/helpers/Monitor.cpp
+++ b/src/helpers/Monitor.cpp
@@ -565,15 +565,6 @@ void CMonitor::changeWorkspace(CWorkspace* const pWorkspace, bool internal, bool
g_pCompositor->updateFullscreenFadeOnWorkspace(pWorkspace);
g_pConfigManager->ensureVRR(this);
-
- for (auto& w : g_pCompositor->m_vWindows) {
- if (w->m_iWorkspaceID != POLDWORKSPACE->m_iID || !w->m_bMappedX11 || !w->m_bIsX11 || w->isHidden() || w->m_iMonitorID != ID)
- continue;
-
- g_pXWaylandManager->moveXWaylandWindow(w.get(), {30000, 30000});
- }
-
- g_pCompositor->forceReportSizesToWindowsOnWorkspace(pWorkspace->m_iID);
}
void CMonitor::changeWorkspace(const int& id, bool internal) {
@@ -585,9 +576,7 @@ void CMonitor::setSpecialWorkspace(CWorkspace* const pWorkspace) {
if (!pWorkspace) {
// remove special if exists
- const auto EXISTINGSPECIAL = g_pCompositor->getWorkspaceByID(specialWorkspaceID);
-
- if (EXISTINGSPECIAL) {
+ if (const auto EXISTINGSPECIAL = g_pCompositor->getWorkspaceByID(specialWorkspaceID); EXISTINGSPECIAL) {
EXISTINGSPECIAL->startAnim(false, false);
g_pEventManager->postEvent(SHyprIPCEvent{"activespecial", "," + szName});
}
@@ -601,18 +590,6 @@ void CMonitor::setSpecialWorkspace(CWorkspace* const pWorkspace) {
else
g_pInputManager->refocus();
- // for xwayland: yeet all the windows to narnia to avoid some focus fuckery. I hate xwayland.
- // I'll avoid setting XCB_ICCCM_WM_STATE_ICONIC (aka minimized) so that the apps don't do stupid shit.
-
- if (EXISTINGSPECIAL) {
- for (auto& w : g_pCompositor->m_vWindows) {
- if (w->m_iWorkspaceID != EXISTINGSPECIAL->m_iID || !w->m_bMappedX11 || !w->m_bIsX11 || w->isHidden() || w->m_iMonitorID != ID)
- continue;
-
- g_pXWaylandManager->moveXWaylandWindow(w.get(), {30000, 30000});
- }
- }
-
return;
}
@@ -654,8 +631,6 @@ void CMonitor::setSpecialWorkspace(CWorkspace* const pWorkspace) {
g_pEventManager->postEvent(SHyprIPCEvent{"activespecial", pWorkspace->m_szName + "," + szName});
g_pHyprRenderer->damageMonitor(this);
-
- g_pCompositor->forceReportSizesToWindowsOnWorkspace(specialWorkspaceID);
}
void CMonitor::setSpecialWorkspace(const int& id) {