From 53279fd8d3c527488ccfa6c0da73238b5fd7cd16 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Wed, 2 Aug 2023 22:56:02 +0200 Subject: [PATCH] InternalWindow: Don't be movable on a dialog with BypassWindowManagerHint Such a dialog isn't placeable, so it shouldn't be movable. Fixes being able to move the tabbox around if Alt is the modifier key for moving windows. --- src/internalwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internalwindow.cpp b/src/internalwindow.cpp index ce39ca4104..5a0cabe284 100644 --- a/src/internalwindow.cpp +++ b/src/internalwindow.cpp @@ -188,12 +188,12 @@ bool InternalWindow::isCloseable() const bool InternalWindow::isMovable() const { - return true; + return !m_internalWindowFlags.testFlag(Qt::BypassWindowManagerHint) && !m_internalWindowFlags.testFlag(Qt::Popup); } bool InternalWindow::isMovableAcrossScreens() const { - return true; + return !m_internalWindowFlags.testFlag(Qt::BypassWindowManagerHint) && !m_internalWindowFlags.testFlag(Qt::Popup); } bool InternalWindow::isResizable() const