Fix build on Windows.

This commit is contained in:
John Preston 2020-08-11 17:30:12 +04:00
parent b6c70572a9
commit 4ba7de8df1
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <QtWidgets/QApplication>
#include <QtWidgets/QDesktopWidget>
#include <QtGui/QDesktopServices>
#include <QtGui/QWindow>
#include <qpa/qplatformnativeinterface.h>
#include <Shobjidl.h>
@ -422,7 +423,7 @@ bool ShowWindowMenu(QWindow *window) {
const auto pos = QCursor::pos();
SendMessage(
window->winId(),
HWND(window->winId()),
WM_SYSCOMMAND,
SC_MOUSEMENU,
MAKELPARAM(pos.x(), pos.y()));