mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Remove BypassWindowManagerHint in MediaView / Passport.
It makes all kinds of usages buggy, including choose file dialog. Fixes #4936. I hope fixes #4950, I hope fixes #4955, I hope fixes #3553.
This commit is contained in:
@@ -247,9 +247,6 @@ GtkDialog *QGtkDialog::gtkDialog() const {
|
||||
}
|
||||
|
||||
void QGtkDialog::exec() {
|
||||
if (auto w = App::wnd()) {
|
||||
w->reActivateWindow();
|
||||
}
|
||||
if (modality() == Qt::ApplicationModal) {
|
||||
// block input to the whole app, including other GTK dialogs
|
||||
Libs::gtk_dialog_run(gtkDialog());
|
||||
@@ -413,6 +410,12 @@ int GtkFileDialog::exec() {
|
||||
|
||||
show();
|
||||
|
||||
if (const auto parent = parentWidget()) {
|
||||
App::CallDelayed(200, parent, [=] {
|
||||
parent->activateWindow();
|
||||
});
|
||||
}
|
||||
|
||||
QPointer<QDialog> guard = this;
|
||||
d->exec();
|
||||
if (guard.isNull())
|
||||
|
@@ -94,11 +94,9 @@ QRect psDesktopRect() {
|
||||
}
|
||||
|
||||
void psShowOverAll(QWidget *w, bool canFocus) {
|
||||
w->show();
|
||||
}
|
||||
|
||||
void psBringToBack(QWidget *w) {
|
||||
w->hide();
|
||||
}
|
||||
|
||||
QAbstractNativeEventFilter *psNativeEventFilter() {
|
||||
|
Reference in New Issue
Block a user