File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -171,9 +171,16 @@ CaptureWidget::CaptureWidget(const CaptureRequest& req,
171171#else
172172// Call cmake with -DFLAMESHOT_DEBUG_CAPTURE=ON to enable easier debugging
173173#if !defined(FLAMESHOT_DEBUG_CAPTURE)
174- // Note: Qt::BypassWindowManagerHint is removed to fix x11 gnome crash
175- setWindowFlags (Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint |
176- Qt::Tool);
174+ if (DesktopInfo ().waylandDetected ()) {
175+ setWindowFlags (Qt::BypassWindowManagerHint |
176+ Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint |
177+ Qt::Tool);
178+ } else {
179+ // Note: Qt::BypassWindowManagerHint is removed to fix x11 gnome
180+ // crash. It's needed on Cosmic
181+ setWindowFlags (Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint |
182+ Qt::Tool);
183+ }
177184#endif
178185
179186 // Always display on the selected screen (not spanning entire desktop)
You can’t perform that action at this time.
0 commit comments