Skip to content

Commit 8fab455

Browse files
Fixed issue with comsic not being full screen (flameshot-org#4596)
1 parent bdb1eda commit 8fab455

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/widgets/capture/capturewidget.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)