Fix debug option for capture mode (#1884)

Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
This commit is contained in:
Haris Gušić
2021-09-11 19:54:38 +02:00
committed by GitHub
parent d8d428f568
commit accfeee022
2 changed files with 7 additions and 1 deletions

View File

@@ -132,7 +132,8 @@ CaptureWidget::CaptureWidget(uint id,
move(currentScreen->geometry().x(), currentScreen->geometry().y());
resize(currentScreen->size());
#else
#if !(defined(QT_DEBUG) && defined(Q_OS_LINUX))
// Call cmake with -DFLAMESHOT_DEBUG_CAPTURE=true to enable easier debugging
#if !defined(FLAMESHOT_DEBUG_CAPTURE)
setWindowFlags(Qt::BypassWindowManagerHint | Qt::WindowStaysOnTopHint |
Qt::FramelessWindowHint | Qt::Tool);
resize(pixmap().size());