diff options
Diffstat (limited to 'Servers/WindowServer/ClientConnection.h')
-rw-r--r-- | Servers/WindowServer/ClientConnection.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Servers/WindowServer/ClientConnection.h b/Servers/WindowServer/ClientConnection.h index b17c384b21..a5ebdd5a65 100644 --- a/Servers/WindowServer/ClientConnection.h +++ b/Servers/WindowServer/ClientConnection.h @@ -26,6 +26,7 @@ #pragma once +#include <AK/Badge.h> #include <AK/Function.h> #include <AK/HashMap.h> #include <AK/OwnPtr.h> @@ -38,6 +39,7 @@ namespace WindowServer { +class Compositor; class Window; class Menu; class MenuBar; @@ -72,6 +74,8 @@ public: return const_cast<Menu*>(menu.value().ptr()); } + void notify_display_link(Badge<Compositor>); + private: explicit ClientConnection(Core::LocalSocket&, int client_id); @@ -117,6 +121,8 @@ private: virtual OwnPtr<Messages::WindowServer::SetSystemMenuResponse> handle(const Messages::WindowServer::SetSystemMenu&) override; virtual OwnPtr<Messages::WindowServer::SetSystemThemeResponse> handle(const Messages::WindowServer::SetSystemTheme&) override; virtual OwnPtr<Messages::WindowServer::SetWindowBaseSizeAndSizeIncrementResponse> handle(const Messages::WindowServer::SetWindowBaseSizeAndSizeIncrement&) override; + virtual void handle(const Messages::WindowServer::EnableDisplayLink&) override; + virtual void handle(const Messages::WindowServer::DisableDisplayLink&) override; HashMap<int, NonnullRefPtr<Window>> m_windows; HashMap<int, NonnullOwnPtr<MenuBar>> m_menubars; @@ -127,6 +133,8 @@ private: int m_next_menu_id { 20000 }; int m_next_window_id { 1982 }; + bool m_has_display_link { false }; + RefPtr<SharedBuffer> m_last_sent_clipboard_content; }; |