Skip to content

Commit

Permalink
WindowServer: Rename default_positioned() -> is_default_positioned()
Browse files Browse the repository at this point in the history
Tiny change, but it really bothered me that this was the only function
not named like the rest.
  • Loading branch information
vkoskiv authored and linusg committed Jan 25, 2022
1 parent 82509ca commit 7a537ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Userland/Services/WindowServer/Window.h
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ class Window final : public Core::Object {
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
Expand Down
2 changes: 1 addition & 1 deletion Userland/Services/WindowServer/WindowManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7a537ad

Please sign in to comment.