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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user