WindowServer: Rename default_positioned() -> is_default_positioned()
Tiny change, but it really bothered me that this was the only function not named like the rest.
This commit is contained in:
parent
82509ca0c8
commit
7a537ad08f
Notes:
sideshowbarker
2024-07-17 20:13:02 +09:00
Author: https://github.com/vkoskiv Commit: https://github.com/SerenityOS/serenity/commit/7a537ad08f0 Pull-request: https://github.com/SerenityOS/serenity/pull/12115
2 changed files with 2 additions and 2 deletions
|
@ -321,7 +321,7 @@ public:
|
|||
bool is_destroyed() const { return m_destroyed; }
|
||||
void destroy();
|
||||
|
||||
bool default_positioned() const { return m_default_positioned; }
|
||||
bool is_default_positioned() const { return m_default_positioned; }
|
||||
void set_default_positioned(bool p) { m_default_positioned = p; }
|
||||
|
||||
bool is_opaque() const
|
||||
|
|
|
@ -2012,7 +2012,7 @@ Gfx::IntPoint WindowManager::get_recommended_window_position(Gfx::IntPoint const
|
|||
|
||||
Window const* overlap_window = nullptr;
|
||||
current_window_stack().for_each_visible_window_of_type_from_front_to_back(WindowType::Normal, [&](Window& window) {
|
||||
if (window.default_positioned() && (!overlap_window || overlap_window->window_id() < window.window_id())) {
|
||||
if (window.is_default_positioned() && (!overlap_window || overlap_window->window_id() < window.window_id())) {
|
||||
overlap_window = &window;
|
||||
}
|
||||
return IterationDecision::Continue;
|
||||
|
|
Loading…
Add table
Reference in a new issue