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