summaryrefslogtreecommitdiff
path: root/Widgets/WindowManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'Widgets/WindowManager.h')
-rw-r--r--Widgets/WindowManager.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/Widgets/WindowManager.h b/Widgets/WindowManager.h
index f73a3325b0..f53c29740e 100644
--- a/Widgets/WindowManager.h
+++ b/Widgets/WindowManager.h
@@ -24,6 +24,9 @@ public:
Widget* rootWidget() { return m_rootWidget; }
void setRootWidget(Widget*);
+ Window* activeWindow() { return m_activeWindow.ptr(); }
+ void setActiveWindow(Window*);
+
private:
WindowManager();
~WindowManager();
@@ -35,13 +38,18 @@ private:
virtual void event(Event&) override;
- Color m_windowBorderColor;
- Color m_windowTitleColor;
+ Color m_activeWindowBorderColor;
+ Color m_activeWindowTitleColor;
+
+ Color m_inactiveWindowBorderColor;
+ Color m_inactiveWindowTitleColor;
void paintWindowFrame(Window&);
HashTable<Window*> m_windows;
Widget* m_rootWidget { nullptr };
+ WeakPtr<Window> m_activeWindow;
+
WeakPtr<Window> m_dragWindow;
Point m_dragOrigin;