Skip to content

Commit

Permalink
WindowServer: Minor tweaks to Window.h
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed May 2, 2021
1 parent 331ab52 commit 8193258
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Userland/Services/WindowServer/Window.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018-2020, Andreas Kling <[email protected]>
* Copyright (c) 2018-2021, Andreas Kling <[email protected]>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
Expand Down Expand Up @@ -68,9 +68,11 @@ enum class WindowMenuDefaultAction {
Restore
};

class Window final : public Core::Object
class Window final
: public Core::Object
, public InlineLinkedListNode<Window> {
C_OBJECT(Window)
C_OBJECT(Window);

public:
virtual ~Window() override;

Expand Down Expand Up @@ -265,7 +267,6 @@ class Window final : public Core::Object
void recalculate_rect();

// For InlineLinkedList.
// FIXME: Maybe make a ListHashSet and then WindowManager can just use that.
Window* m_next { nullptr };
Window* m_prev { nullptr };

Expand Down Expand Up @@ -302,8 +303,6 @@ class Window final : public Core::Object
bool default_positioned() const { return m_default_positioned; }
void set_default_positioned(bool p) { m_default_positioned = p; }

bool is_invalidated() const { return m_invalidated; }

bool is_opaque() const
{
if (opacity() < 1.0f)
Expand Down

0 comments on commit 8193258

Please sign in to comment.