2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix reply from notifications (Qt 5.6.2 broke it).

Now the mouse press on Qt::BypassWindowManagerHint window
doesn't activate it. So if you want a working input field
in a Qt::BypassWindowManagerHint window, you should
activate it yourself from any mouse press event.
This commit is contained in:
John Preston
2016-10-19 16:31:18 +03:00
parent 3503be03c9
commit 2ffc0196dd
4 changed files with 28 additions and 9 deletions

View File

@@ -1185,14 +1185,7 @@ void MediaView::displayPhoto(PhotoData *photo, HistoryItem *item) {
_from = _user;
}
_photo->download();
updateControls();
if (isHidden()) {
psUpdateOverlayed(this);
show();
psShowOverAll(this);
activateWindow();
setFocus();
}
displayFinished();
}
void MediaView::displayDocument(DocumentData *doc, HistoryItem *item) { // empty messages shown as docs: doc can be NULL
@@ -1330,6 +1323,10 @@ void MediaView::displayDocument(DocumentData *doc, HistoryItem *item) { // empty
_from = _user;
}
_full = 1;
displayFinished();
}
void MediaView::displayFinished() {
updateControls();
if (isHidden()) {
psUpdateOverlayed(this);