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

multimedia keys handle added

This commit is contained in:
John Preston
2015-07-13 20:55:59 +03:00
parent 5663841742
commit b352d38acf
7 changed files with 158 additions and 40 deletions

View File

@@ -41,7 +41,7 @@ namespace {
Window *wnd = Application::wnd();
if (!wnd) return false;
return false;
return wnd->psFilterNativeEvent(message);
}
};
_PsEventFilter *_psEventFilter = 0;
@@ -460,6 +460,10 @@ void PsMainWindow::psActivateNotify(NotifyWindow *w) {
objc_activateWnd(w->winId());
}
bool PsMainWindow::psFilterNativeEvent(void *event) {
return _private.filterNativeEvent(event);
}
namespace {
QRect _monitorRect;
uint64 _monitorLastGot = 0;