parent
b75b69d59d
commit
c6727e673d
1 changed files with 6 additions and 8 deletions
|
|
@ -12,11 +12,6 @@ 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>
|
||||||
|
|
@ -29,6 +24,10 @@ 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>
|
||||||
|
|
@ -71,9 +70,8 @@ public:
|
||||||
|
|
||||||
QRect geometry() const override {
|
QRect geometry() const override {
|
||||||
if (!_settingGeometry) {
|
if (!_settingGeometry) {
|
||||||
if (window()->inherits("QWidgetWindow")) {
|
if (const auto widgetWindow = qobject_cast<const QWidgetWindow*>(
|
||||||
const auto widgetWindow = static_cast<QWidgetWindow*>(
|
window())) {
|
||||||
window());
|
|
||||||
return widgetWindow->widget()->geometry();
|
return widgetWindow->widget()->geometry();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue