forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WindowServer: Minor tweaks to Window.h
- Loading branch information
1 parent
331ab52
commit 8193258
Showing
1 changed file
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ | ||
|
@@ -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 @@ 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 }; | ||
|
||
|
@@ -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) | ||
|