Fix packaged build
This commit is contained in:
parent
bda46510f5
commit
4689c896e2
1 changed files with 8 additions and 6 deletions
|
|
@ -12,6 +12,11 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "waylandshells/xdg_shell.h"
|
#include "waylandshells/xdg_shell.h"
|
||||||
#include "qwayland-xdg-shell.h"
|
#include "qwayland-xdg-shell.h"
|
||||||
|
|
||||||
|
// must be before QtPlugin include
|
||||||
|
#ifndef QT_STATICPLUGIN
|
||||||
|
#define QT_STATICPLUGIN
|
||||||
|
#endif // !QT_STATICPLUGIN
|
||||||
|
|
||||||
#include <QtCore/QtPlugin>
|
#include <QtCore/QtPlugin>
|
||||||
#include <QtGui/QGuiApplication>
|
#include <QtGui/QGuiApplication>
|
||||||
#include <QtGui/QWindow>
|
#include <QtGui/QWindow>
|
||||||
|
|
@ -24,10 +29,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#define slots Q_SLOTS
|
#define slots Q_SLOTS
|
||||||
#endif // QT_NO_KEYWORDS
|
#endif // QT_NO_KEYWORDS
|
||||||
|
|
||||||
#ifndef QT_STATICPLUGIN
|
|
||||||
#define QT_STATICPLUGIN
|
|
||||||
#endif // !QT_STATICPLUGIN
|
|
||||||
|
|
||||||
#include <private/qwaylanddisplay_p.h>
|
#include <private/qwaylanddisplay_p.h>
|
||||||
#include <private/qwaylandwindow_p.h>
|
#include <private/qwaylandwindow_p.h>
|
||||||
#include <private/qwaylandinputdevice_p.h>
|
#include <private/qwaylandinputdevice_p.h>
|
||||||
|
|
@ -70,8 +71,9 @@ public:
|
||||||
|
|
||||||
QRect geometry() const override {
|
QRect geometry() const override {
|
||||||
if (!_settingGeometry) {
|
if (!_settingGeometry) {
|
||||||
if (const auto widgetWindow = qobject_cast<const QWidgetWindow*>(
|
if (window()->inherits("QWidgetWindow")) {
|
||||||
window())) {
|
const auto widgetWindow = static_cast<QWidgetWindow*>(
|
||||||
|
window());
|
||||||
return widgetWindow->widget()->geometry();
|
return widgetWindow->widget()->geometry();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue