mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Fix build on Windows.
This commit is contained in:
@@ -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()));
|
||||||
|
Reference in New Issue
Block a user