Skip to content

Commit

Permalink
Revert "pinwidget: allow moving widget partially outside of screen un…
Browse files Browse the repository at this point in the history
…der linux (flameshot-org#2520)"

This reverts commit 850260d.
Fix for flameshot-org#2768
(but breaks another issue so dont merge upstream)
  • Loading branch information
gepbird committed Aug 29, 2023
1 parent a7e0a61 commit d48d186
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/tools/pin/pinwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ PinWidget::PinWidget(const QPixmap& pixmap,
static_cast<int>(static_cast<double>(MARGIN) * devicePixelRatio);
QRect adjusted_pos = geometry + QMargins(margin, margin, margin, margin);
setGeometry(adjusted_pos);
#if defined(Q_OS_LINUX)
setWindowFlags(Qt::X11BypassWindowManagerHint);
#endif

#if defined(Q_OS_MACOS)
if (currentScreen != nullptr) {
QPoint topLeft = currentScreen->geometry().topLeft();
Expand Down

0 comments on commit d48d186

Please sign in to comment.