mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
WindowServer: Invalidate new and previous active input window frames
Fixes shared active title bar theming not updating for capturing modals.
This commit is contained in:
parent
6f316d59f4
commit
af706d081c
1 changed files with 4 additions and 0 deletions
|
@ -1809,11 +1809,15 @@ Window* WindowManager::set_active_input_window(Window* window)
|
|||
void WindowManager::notify_new_active_input_window(Window& new_input_window)
|
||||
{
|
||||
Core::EventLoop::current().post_event(new_input_window, make<Event>(Event::WindowInputEntered));
|
||||
if (new_input_window.is_capturing_input() && !new_input_window.is_frameless())
|
||||
new_input_window.invalidate(true, true);
|
||||
}
|
||||
|
||||
void WindowManager::notify_previous_active_input_window(Window& previous_input_window)
|
||||
{
|
||||
Core::EventLoop::current().post_event(previous_input_window, make<Event>(Event::WindowInputLeft));
|
||||
if (previous_input_window.is_capturing_input() && !previous_input_window.is_frameless())
|
||||
previous_input_window.invalidate(true, true);
|
||||
}
|
||||
|
||||
void WindowManager::set_active_window(Window* new_active_window, bool make_input)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue