diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-02 10:49:49 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-02 13:35:46 +0200 |
commit | 819325892ab7c0a4bee954412dbe1b23f026993e (patch) | |
tree | 52f001a78e99c427e54e65e831c6c82f585d948b /Userland/Services/WindowServer/Window.h | |
parent | 331ab52318033e2385f77b0d92e173376a701127 (diff) | |
download | serenity-819325892ab7c0a4bee954412dbe1b23f026993e.zip |
WindowServer: Minor tweaks to Window.h
Diffstat (limited to 'Userland/Services/WindowServer/Window.h')
-rw-r--r-- | Userland/Services/WindowServer/Window.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Userland/Services/WindowServer/Window.h b/Userland/Services/WindowServer/Window.h index 04290b27dc..c2db7b8bb3 100644 --- a/Userland/Services/WindowServer/Window.h +++ b/Userland/Services/WindowServer/Window.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> + * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ @@ -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; @@ -265,7 +267,6 @@ public: 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 }; @@ -302,8 +303,6 @@ public: 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) |