diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-19 00:52:39 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-19 00:52:39 +0100 |
commit | 43304d2adf896539f55ec337fa3cb1463933c353 (patch) | |
tree | 49288f29dac674eccba68f2835e037677b556823 /LibGUI | |
parent | 57ff293a51d97742d50987950c86dfcde55e6ad1 (diff) | |
download | serenity-43304d2adf896539f55ec337fa3cb1463933c353.zip |
WindowServer: Add special treatment for modal windows.
While a WSClientConnection has a modal window showing, non-modal windows
belonging to that client are not sent any events.
Diffstat (limited to 'LibGUI')
-rw-r--r-- | LibGUI/GWindow.cpp | 2 | ||||
-rw-r--r-- | LibGUI/GWindow.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/LibGUI/GWindow.cpp b/LibGUI/GWindow.cpp index 3dd4b9557a..0001766406 100644 --- a/LibGUI/GWindow.cpp +++ b/LibGUI/GWindow.cpp @@ -59,6 +59,8 @@ void GWindow::show() request.window_id = m_window_id; request.window.rect = m_rect_when_windowless; request.window.has_alpha_channel = m_has_alpha_channel; + request.window.modal = m_modal; + request.window.resizable = m_resizable; request.window.opacity = m_opacity_when_windowless; request.window.size_increment = m_size_increment; request.window.base_size = m_base_size; diff --git a/LibGUI/GWindow.h b/LibGUI/GWindow.h index 3874887c5f..1331925678 100644 --- a/LibGUI/GWindow.h +++ b/LibGUI/GWindow.h @@ -105,5 +105,6 @@ private: bool m_has_alpha_channel { false }; bool m_double_buffering_enabled { true }; bool m_modal { false }; + bool m_resizable { true }; }; |