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

Window.ShowDialog does not block parent window(Linux) #2958

Closed
SpectreZero opened this issue Sep 10, 2019 · 4 comments · Fixed by #13398
Closed

Window.ShowDialog does not block parent window(Linux) #2958

SpectreZero opened this issue Sep 10, 2019 · 4 comments · Fixed by #13398
Assignees
Labels
bug help-wanted A contribution from the community would be most welcome. os-linux

Comments

@SpectreZero
Copy link

On Windows, everything works fine.
On Linux, the window opens as not modaland I have access to the parent window.

@joneuhauser
Copy link

Reproduced in Avalonia 0.10.0, Ubuntu 20.04. Most operations are blocked in the parent window, but styles are still updated on hover/click.

Most importantly, the context menu is still fully functional!) If the dialog was opened from a context menu, you can open the same dialog again, and chaos ensues.

@luthfiampas
Copy link
Contributor

Reproduced in Avalonia 0.10.0, Ubuntu 20.04. Most operations are blocked in the parent window, but styles are still updated on hover/click.

Most importantly, the context menu is still fully functional!) If the dialog was opened from a context menu, you can open the same dialog again, and chaos ensues.

Not too familiar with X11, perhaps we need _NET_WM_STATE_MODAL atom as well. For now the best hack I think is to create overlay element that will be shown when ShowDialog is being called.

@Robotanchik
Copy link

If dialog called from main menu then it works as expected (parent window is blocked), but if it called from context menu that attached to TreeView Item, it does not block parent window

@RomanKalachik
Copy link

Any updates on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help-wanted A contribution from the community would be most welcome. os-linux
Projects
None yet
8 participants