mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +00:00
Taskbar: Use WM connection for window management operations
Since WM operations are moved to a separate endpoint pair, Taskbar now uses those to perform window management related operations. Additionally, it now explicitly declares to WindowServer that it is a window manager.
This commit is contained in:
parent
aa56f9a1e0
commit
c8ef8d2db5
3 changed files with 24 additions and 8 deletions
|
@ -28,6 +28,7 @@
|
|||
#include "WindowList.h"
|
||||
#include <LibGUI/Action.h>
|
||||
#include <LibGUI/Painter.h>
|
||||
#include <LibGUI/WindowManagerServerConnection.h>
|
||||
#include <LibGUI/WindowServerConnection.h>
|
||||
#include <LibGfx/Font.h>
|
||||
#include <LibGfx/FontDatabase.h>
|
||||
|
@ -45,13 +46,17 @@ TaskbarButton::~TaskbarButton()
|
|||
|
||||
void TaskbarButton::context_menu_event(GUI::ContextMenuEvent&)
|
||||
{
|
||||
GUI::WindowServerConnection::the().post_message(Messages::WindowServer::WM_PopupWindowMenu(m_identifier.client_id(), m_identifier.window_id(), screen_relative_rect().location()));
|
||||
GUI::WindowManagerServerConnection::the().post_message(
|
||||
Messages::WindowManagerServer::PopupWindowMenu(
|
||||
m_identifier.client_id(),
|
||||
m_identifier.window_id(),
|
||||
screen_relative_rect().location()));
|
||||
}
|
||||
|
||||
void TaskbarButton::update_taskbar_rect()
|
||||
{
|
||||
GUI::WindowServerConnection::the().post_message(
|
||||
Messages::WindowServer::WM_SetWindowTaskbarRect(
|
||||
GUI::WindowManagerServerConnection::the().post_message(
|
||||
Messages::WindowManagerServer::SetWindowTaskbarRect(
|
||||
m_identifier.client_id(),
|
||||
m_identifier.window_id(),
|
||||
screen_relative_rect()));
|
||||
|
@ -59,8 +64,8 @@ void TaskbarButton::update_taskbar_rect()
|
|||
|
||||
void TaskbarButton::clear_taskbar_rect()
|
||||
{
|
||||
GUI::WindowServerConnection::the().post_message(
|
||||
Messages::WindowServer::WM_SetWindowTaskbarRect(
|
||||
GUI::WindowManagerServerConnection::the().post_message(
|
||||
Messages::WindowManagerServer::SetWindowTaskbarRect(
|
||||
m_identifier.client_id(),
|
||||
m_identifier.window_id(),
|
||||
{}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue