Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make dialogs exclusive by default, fixes #37732 #39993

Merged
merged 1 commit into from
Jun 30, 2020

Conversation

reduz
Copy link
Member

@reduz reduz commented Jun 30, 2020

Also fix on set_visible, not creating exclusive children as it should.

The idea is that if you open a transient dialog (a dialog that is spawned from a parent window) by default you are not allowed to do changes in the parent window until this dialog is closed. Likewise, the dialog will not close if you focus in/out as it is now an exclusive dialog.

Bugsquad edit: Fixes #37732. Also fixes #37731 and fixes #37710

Also fix on set_visible, not creating exclusive children as it should.
@akien-mga
Copy link
Member

Thanks!

@Meriipu
Copy link
Contributor

Meriipu commented Jun 30, 2020

Dialogs work great again now thanks

@aaronfranke
Copy link
Member

aaronfranke commented Jun 30, 2020

This causes a regression with single-window mode, none of the windows (nor the editor in the background) are clickable. The editor isn't frozen, it still updates when resized, but it no longer accepts user input.

This is what happens when I open the editor settings to try and disable single window mode (and then I resized the window so you can see it's not frozen). For the moment it seems like I'm in a chicken-and-egg problem unless I delete my editor settings file.

Screenshot from 2020-06-30 16-16-03

@dreamsComeTrue
Copy link
Contributor

Confirming - opening any dialogs on Fedora causes Editor basically to stop receiving any input :(

@@ -44,6 +44,7 @@ class LineEdit;
class AcceptDialog : public Window {
GDCLASS(AcceptDialog, Window);

public:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@reduz Why was this changed BTW? It doesn't seem necessary.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed on IRC that this was a mistake, fixing in #40016.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment