summaryrefslogtreecommitdiff
path: root/Userland/Applets/Audio
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2022-11-17 10:00:07 -0500
committerAndreas Kling <kling@serenityos.org>2022-11-19 16:04:42 +0100
commit24d299c9c8c7719f172eca7d6c23eb5387d7c963 (patch)
tree40fa2fa1c45f6d8ea318ae659b413b9478814951 /Userland/Applets/Audio
parent35bd79701c5835c87088b5bf4a6146a895c3ed6f (diff)
downloadserenity-24d299c9c8c7719f172eca7d6c23eb5387d7c963.zip
LibGUI+WindowServer+Applets+Taskbar: Remove active input concepts
and the CaptureInput mode. They are a source of unneeded complexity in WindowServer and have proven prone to regressions, so this patch replaces them with a simple input preemption scheme using Popups. Popup windows now have ergonomics similar to menus: When open, a popup preempts all mouse and key events for the entire window stack; however, they are fragile and will close after WindowServer swallows the first event outside them. This is similar to how combo box windows and popups work in the classic Windows DE and has the added benefit of letting the user click anywhere to dismiss a popup without having to worry about unwanted interactions with other widgets.
Diffstat (limited to 'Userland/Applets/Audio')
-rw-r--r--Userland/Applets/Audio/main.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/Userland/Applets/Audio/main.cpp b/Userland/Applets/Audio/main.cpp
index a4b3d2b98c..6d4d7e3e00 100644
--- a/Userland/Applets/Audio/main.cpp
+++ b/Userland/Applets/Audio/main.cpp
@@ -81,10 +81,6 @@ private:
m_slider_window->set_frameless(true);
m_slider_window->set_resizable(false);
m_slider_window->set_minimizable(false);
- m_slider_window->on_active_input_change = [this](bool is_active_input) {
- if (!is_active_input)
- close();
- };
m_root_container = TRY(m_slider_window->try_set_main_widget<GUI::Frame>());
m_root_container->set_fill_with_background_color(true);