From b7f3db5aca248f1e7f07c7f3dd15f4a93da34689 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 10 May 2022 13:03:26 +0200 Subject: [PATCH] edges: Also check edge blocking on fullscreen windows on Wayland At the moment we were reconsidering the fullscreen block only on X11. Instead, use the abstracted information. --- src/workspace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workspace.cpp b/src/workspace.cpp index b1d4c0edda..e098014c3d 100644 --- a/src/workspace.cpp +++ b/src/workspace.cpp @@ -508,6 +508,7 @@ void Workspace::setupWindowConnections(Window *window) { connect(window, &Window::desktopPresenceChanged, this, &Workspace::desktopPresenceChanged); connect(window, &Window::minimizedChanged, this, std::bind(&Workspace::windowMinimizedChanged, this, window)); + connect(window, &Window::fullScreenChanged, ScreenEdges::self(), &ScreenEdges::checkBlocking); } void Workspace::constrain(Window *below, Window *above) @@ -652,7 +653,6 @@ X11Window *Workspace::createX11Window(xcb_window_t windowId, bool is_mapped) if (X11Compositor *compositor = X11Compositor::self()) { connect(window, &X11Window::blockingCompositingChanged, compositor, &X11Compositor::updateClientCompositeBlocking); } - connect(window, &X11Window::clientFullScreenSet, ScreenEdges::self(), &ScreenEdges::checkBlocking); if (!window->manage(windowId, is_mapped)) { X11Window::deleteClient(window); return nullptr;