mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:07:34 +00:00
WindowServer: Remove misbehavior conditions for modals
This was too restrictive and there are already UI elements that rely on this behavior. Now Blocking modals will preempt interaction with all windows in their modal chain except those descending from them. Fixes crashing in FilePicker when permission is denied.
This commit is contained in:
parent
b2b68a7551
commit
1dd9086e1a
5 changed files with 14 additions and 18 deletions
|
@ -14,7 +14,7 @@ namespace WindowServer {
|
|||
// - Passive: Joins the modal chain but has no modal effect (default mode for child windows)
|
||||
// - RenderAbove: Renders above its parent
|
||||
// - CaptureInput: Captures input from its parent
|
||||
// - Blocking: Preempts all interaction with its modal chain
|
||||
// - Blocking: Preempts all interaction with its modal chain excepting descendants (default mode for Dialogs)
|
||||
enum class WindowMode {
|
||||
Modeless = 0,
|
||||
Passive,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue