Skip to content

Commit eebcc1c

Browse files
Fix X11 crash (flameshot-org#4570)
1 parent f983251 commit eebcc1c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/widgets/capture/capturewidget.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,9 @@ CaptureWidget::CaptureWidget(const CaptureRequest& req,
170170
#else
171171
// Call cmake with -DFLAMESHOT_DEBUG_CAPTURE=ON to enable easier debugging
172172
#if !defined(FLAMESHOT_DEBUG_CAPTURE)
173-
setWindowFlags(Qt::BypassWindowManagerHint | Qt::WindowStaysOnTopHint |
174-
Qt::FramelessWindowHint | Qt::Tool);
173+
// Note: Qt::BypassWindowManagerHint is removed to fix x11 gnome crash
174+
setWindowFlags(Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint |
175+
Qt::Tool);
175176
#endif
176177

177178
// Always display on the selected screen (not spanning entire desktop)

0 commit comments

Comments
 (0)