summaryrefslogtreecommitdiff
path: root/WindowServer/WSWindowManager.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-18 15:55:28 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-18 15:55:28 +0100
commit4bffdd239488360c4c37f0aca51d590718a10234 (patch)
treed8216e31e57b3a339ffaa492eb3f632ab37e8f09 /WindowServer/WSWindowManager.h
parent7e044cf2930cf63b30de8f30b3ea75851eda7d2b (diff)
downloadserenity-4bffdd239488360c4c37f0aca51d590718a10234.zip
WindowServer: Use a different border color for windows being dragged.
Also get rid of an unnecessary invalidation on drag end.
Diffstat (limited to 'WindowServer/WSWindowManager.h')
-rw-r--r--WindowServer/WSWindowManager.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/WindowServer/WSWindowManager.h b/WindowServer/WSWindowManager.h
index 9df93d8515..4b429ace26 100644
--- a/WindowServer/WSWindowManager.h
+++ b/WindowServer/WSWindowManager.h
@@ -25,7 +25,7 @@ public:
void notify_title_changed(WSWindow&);
void notify_rect_changed(WSWindow&, const Rect& oldRect, const Rect& newRect);
- WSWindow* activeWindow() { return m_active_window.ptr(); }
+ WSWindow* active_window() { return m_active_window.ptr(); }
void move_to_front(WSWindow&);
@@ -62,12 +62,15 @@ private:
Color m_inactive_window_border_color;
Color m_inactive_window_title_color;
+ Color m_dragging_window_border_color;
+ Color m_dragging_window_title_color;
+
HashTable<WSWindow*> m_windows;
InlineLinkedList<WSWindow> m_windows_in_order;
WeakPtr<WSWindow> m_active_window;
- WeakPtr<WSWindow> m_dragWindow;
+ WeakPtr<WSWindow> m_drag_window;
Point m_drag_origin;
Point m_drag_window_origin;