mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-19 20:06:29 +00:00
WindowServer+LibGUI+Taskbar: Don't include frameless windows in lists
Frameless windows don't need to show up in the taskbar or the switcher.
This commit is contained in:
@@ -223,6 +223,8 @@ void WindowSwitcher::refresh()
|
||||
int longest_title_width = 0;
|
||||
wm.for_each_window_of_type_from_front_to_back(
|
||||
WindowType::Normal, [&](Window& window) {
|
||||
if (window.is_frameless())
|
||||
return IterationDecision::Continue;
|
||||
++window_count;
|
||||
longest_title_width = max(longest_title_width, wm.font().width(window.title()));
|
||||
if (selected_window == &window)
|
||||
|
||||
Reference in New Issue
Block a user