mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:37:46 +00:00
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.
This commit is contained in:
parent
35bd79701c
commit
24d299c9c8
17 changed files with 76 additions and 191 deletions
|
@ -56,10 +56,6 @@ public:
|
|||
Window const* active_window() const { return m_active_window; }
|
||||
void set_active_window(Window*);
|
||||
|
||||
Window* active_input_window() { return m_active_input_window; }
|
||||
Window const* active_input_window() const { return m_active_input_window; }
|
||||
void set_active_input_window(Window* window) { m_active_input_window = window; }
|
||||
|
||||
Optional<HitTestResult> hit_test(Gfx::IntPoint const&) const;
|
||||
|
||||
unsigned row() const { return m_row; }
|
||||
|
@ -79,7 +75,6 @@ public:
|
|||
|
||||
private:
|
||||
WeakPtr<Window> m_active_window;
|
||||
WeakPtr<Window> m_active_input_window;
|
||||
|
||||
Window::List m_windows;
|
||||
unsigned m_row { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue