2021-04-14 21:38:53 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2021-04-14 21:38:53 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibIPC/ServerConnection.h>
|
2021-06-14 21:19:56 -06:00
|
|
|
#include <WindowServer/ScreenLayout.h>
|
2021-04-14 21:38:53 +00:00
|
|
|
#include <WindowServer/WindowManagerClientEndpoint.h>
|
|
|
|
#include <WindowServer/WindowManagerServerEndpoint.h>
|
|
|
|
|
|
|
|
namespace GUI {
|
|
|
|
|
2021-05-23 09:52:41 +02:00
|
|
|
class WindowManagerServerConnection final
|
2021-04-14 21:38:53 +00:00
|
|
|
: public IPC::ServerConnection<WindowManagerClientEndpoint, WindowManagerServerEndpoint>
|
|
|
|
, public WindowManagerClientEndpoint {
|
|
|
|
C_OBJECT(WindowManagerServerConnection)
|
|
|
|
public:
|
2021-10-31 23:38:04 +01:00
|
|
|
static WindowManagerServerConnection& the();
|
|
|
|
|
|
|
|
private:
|
2021-04-14 21:38:53 +00:00
|
|
|
WindowManagerServerConnection()
|
|
|
|
: IPC::ServerConnection<WindowManagerClientEndpoint, WindowManagerServerEndpoint>(*this, "/tmp/portal/wm")
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2021-05-02 19:54:34 +02:00
|
|
|
virtual void window_removed(i32, i32, i32) override;
|
2021-06-30 19:12:02 -06:00
|
|
|
virtual void window_state_changed(i32, i32, i32, i32, i32, u32, u32, bool, bool, bool, bool, i32, String const&, Gfx::IntRect const&, Optional<i32> const&) override;
|
2021-05-02 19:54:34 +02:00
|
|
|
virtual void window_icon_bitmap_changed(i32, i32, i32, Gfx::ShareableBitmap const&) override;
|
|
|
|
virtual void window_rect_changed(i32, i32, i32, Gfx::IntRect const&) override;
|
|
|
|
virtual void applet_area_size_changed(i32, Gfx::IntSize const&) override;
|
|
|
|
virtual void super_key_pressed(i32) override;
|
2021-06-21 19:32:46 -04:00
|
|
|
virtual void super_space_key_pressed(i32) override;
|
2021-11-13 12:11:35 +01:00
|
|
|
virtual void workspace_changed(i32, u32, u32) override;
|
2021-04-14 21:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|