From e58affc71bf71812457b3e31cec07a6fa2027156 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 15 Nov 2022 14:09:15 +0200 Subject: [PATCH] wayland: Make debug console placeable Since the debug console has Qt.BypassWindowManagerHint flag set, it won't be placed or ensured that it stays in the work area. On the other hand, unlike X11, kwin won't have problems if the debug console is managed on wayland. BUG: 453920 --- src/debug_console.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/debug_console.cpp b/src/debug_console.cpp index 71ab9f0233..7c487118c0 100644 --- a/src/debug_console.cpp +++ b/src/debug_console.cpp @@ -620,6 +620,7 @@ DebugConsole::DebugConsole() m_ui->tabWidget->setTabEnabled(1, false); m_ui->tabWidget->setTabEnabled(2, false); m_ui->tabWidget->setTabEnabled(6, false); + setWindowFlags(Qt::X11BypassWindowManagerHint); } connect(m_ui->quitButton, &QAbstractButton::clicked, this, &DebugConsole::deleteLater); @@ -649,9 +650,6 @@ DebugConsole::DebugConsole() } }); - // for X11 - setWindowFlags(Qt::X11BypassWindowManagerHint); - initGLTab(); }