Fix OpenWith on Windows (#1309) (#2801)

* Fix OpenWith on Windows (#1309)

* Clang-format and function name fix

* Clang-format
This commit is contained in:
El Thoro
2022-10-02 15:11:08 +02:00
committed by GitHub
parent 001726a565
commit 2eef14a14d
12 changed files with 276 additions and 10 deletions

View File

@@ -118,9 +118,12 @@ CaptureWidget::CaptureWidget(const CaptureRequest& req,
m_context.origScreenshot = m_context.screenshot;
#if defined(Q_OS_WIN)
// Call cmake with -DFLAMESHOT_DEBUG_CAPTURE=ON to enable easier debugging
#if !defined(FLAMESHOT_DEBUG_CAPTURE)
setWindowFlags(Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint |
Qt::SubWindow // Hides the taskbar icon
);
#endif
for (QScreen* const screen : QGuiApplication::screens()) {
QPoint topLeftScreen = screen->geometry().topLeft();