2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Fix window title on Windows 7.

Regression was introduced in dd68c7e90.

Fixes #6106.
This commit is contained in:
John Preston
2019-06-07 14:30:30 +03:00
parent abfe685697
commit 1225c9194a
12 changed files with 135 additions and 140 deletions

View File

@@ -118,17 +118,6 @@ QString CurrentExecutablePath(int argc, char *argv[]) {
namespace {
class _PsEventFilter : public QAbstractNativeEventFilter {
public:
bool nativeEventFilter(const QByteArray &eventType, void *message, long *result) {
//auto wnd = App::wnd();
//if (!wnd) return false;
return false;
}
};
_PsEventFilter *_psEventFilter = nullptr;
QRect _monitorRect;
auto _monitorLastGot = 0LL;
@@ -149,12 +138,6 @@ void psShowOverAll(QWidget *w, bool canFocus) {
void psBringToBack(QWidget *w) {
}
QAbstractNativeEventFilter *psNativeEventFilter() {
delete _psEventFilter;
_psEventFilter = new _PsEventFilter();
return _psEventFilter;
}
void psWriteDump() {
}
@@ -255,9 +238,6 @@ void start() {
void finish() {
Notifications::Finish();
delete _psEventFilter;
_psEventFilter = nullptr;
}
bool TranslucentWindowsSupported(QPoint globalPosition) {