mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix build on Windows.
This commit is contained in:
parent
b6c70572a9
commit
4ba7de8df1
1 changed files with 2 additions and 1 deletions
|
@ -24,6 +24,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include <QtWidgets/QApplication>
|
#include <QtWidgets/QApplication>
|
||||||
#include <QtWidgets/QDesktopWidget>
|
#include <QtWidgets/QDesktopWidget>
|
||||||
#include <QtGui/QDesktopServices>
|
#include <QtGui/QDesktopServices>
|
||||||
|
#include <QtGui/QWindow>
|
||||||
#include <qpa/qplatformnativeinterface.h>
|
#include <qpa/qplatformnativeinterface.h>
|
||||||
|
|
||||||
#include <Shobjidl.h>
|
#include <Shobjidl.h>
|
||||||
|
@ -422,7 +423,7 @@ bool ShowWindowMenu(QWindow *window) {
|
||||||
const auto pos = QCursor::pos();
|
const auto pos = QCursor::pos();
|
||||||
|
|
||||||
SendMessage(
|
SendMessage(
|
||||||
window->winId(),
|
HWND(window->winId()),
|
||||||
WM_SYSCOMMAND,
|
WM_SYSCOMMAND,
|
||||||
SC_MOUSEMENU,
|
SC_MOUSEMENU,
|
||||||
MAKELPARAM(pos.x(), pos.y()));
|
MAKELPARAM(pos.x(), pos.y()));
|
||||||
|
|
Loading…
Add table
Reference in a new issue