Skip to content

Commit

Permalink
Fix build for older Qt
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Holecek <hluk@email.cz>
  • Loading branch information
hluk committed Jan 6, 2019
1 parent 4f4aca2 commit 61ddcc0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/common/display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ int smallIconSize()
QPoint toScreen(QPoint pos, QWidget *w)
{
QWindow *window = w->windowHandle();
if (window) {
if (window)
window->setPosition(pos);
window->requestUpdate();
}

const QRect availableGeometry = QApplication::desktop()->availableGeometry(pos);
const QSize size = window ? window->size() : w->size();
Expand Down

0 comments on commit 61ddcc0

Please sign in to comment.