From f983251851ac645215c24921a699a8fa2d3cc5ad Mon Sep 17 00:00:00 2001 From: El Thoro Date: Sat, 21 Mar 2026 12:33:24 +0100 Subject: [PATCH 1/3] Update QtColorWidgets git tag (#4584) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fa396e5259..32105ca74b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,7 +36,7 @@ else() FetchContent_Declare( qtColorWidgets GIT_REPOSITORY https://gitlab.com/mattbas/Qt-Color-Widgets.git - GIT_TAG 4f3c7e2af8e3138d89533475af66df42ccf08ef8 + GIT_TAG 5d52e907e50dc88cf969b41cea44665ff6c475b1 ) #Workaround for duplicate GUID in windows WIX installer if(WIN32) From eebcc1c0f5c3b726c4ed25cd618b42f85e995128 Mon Sep 17 00:00:00 2001 From: borgmanJeremy <46930769+borgmanJeremy@users.noreply.github.com> Date: Sat, 21 Mar 2026 06:33:44 -0500 Subject: [PATCH 2/3] Fix X11 crash (#4570) --- src/widgets/capture/capturewidget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/widgets/capture/capturewidget.cpp b/src/widgets/capture/capturewidget.cpp index d19acd38f3..4b15131557 100644 --- a/src/widgets/capture/capturewidget.cpp +++ b/src/widgets/capture/capturewidget.cpp @@ -170,8 +170,9 @@ CaptureWidget::CaptureWidget(const CaptureRequest& req, #else // Call cmake with -DFLAMESHOT_DEBUG_CAPTURE=ON to enable easier debugging #if !defined(FLAMESHOT_DEBUG_CAPTURE) - setWindowFlags(Qt::BypassWindowManagerHint | Qt::WindowStaysOnTopHint | - Qt::FramelessWindowHint | Qt::Tool); + // Note: Qt::BypassWindowManagerHint is removed to fix x11 gnome crash + setWindowFlags(Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint | + Qt::Tool); #endif // Always display on the selected screen (not spanning entire desktop) From b26cf40e514b1b08484096d193ef6ae282637759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benigno=20Batista=20J=C3=BAnior?= <54124996+benignobjunior@users.noreply.github.com> Date: Sat, 21 Mar 2026 08:35:49 -0300 Subject: [PATCH 3/3] fix: remove duplicate layout parent in SidePanelWidget (#4578) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The widget's layout is set in the member initializer list (line 25) via m_layout(new QVBoxLayout(this)). Passing 'this' to the QHBoxLayout constructor at line 84 tries to set a second layout on the same widget, which Qt rejects with a warning on every capture: QLayout: Attempting to add QLayout "" to SidePanelWidget "", which already has a layout The parent argument is unnecessary since the layout is added to m_layout via addLayout() at line 94. Co-authored-by: Benigno Batista JĂșnior --- src/widgets/panel/sidepanelwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/panel/sidepanelwidget.cpp b/src/widgets/panel/sidepanelwidget.cpp index 227e583eff..76c013a864 100644 --- a/src/widgets/panel/sidepanelwidget.cpp +++ b/src/widgets/panel/sidepanelwidget.cpp @@ -81,7 +81,7 @@ SidePanelWidget::SidePanelWidget(QPixmap* p, QWidget* parent) m_layout->addWidget(m_colorWheel); m_layout->addWidget(m_colorHex); - QHBoxLayout* gridHBoxLayout = new QHBoxLayout(this); + QHBoxLayout* gridHBoxLayout = new QHBoxLayout(); m_gridCheck = new QCheckBox(tr("Display grid"), this); m_gridSizeSpin = new QSpinBox(this); m_gridSizeSpin->setRange(5, 50);