mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00
WindowServer: Add a GetDesktopDisplayScale IPC request
Tells you which scale factor is configured in window manager.
This commit is contained in:
parent
19b22fbb4a
commit
4ef85de9dc
3 changed files with 8 additions and 0 deletions
|
@ -915,6 +915,11 @@ Messages::WindowServer::IsWindowModifiedResponse ClientConnection::is_window_mod
|
|||
return window.is_modified();
|
||||
}
|
||||
|
||||
Messages::WindowServer::GetDesktopDisplayScaleResponse ClientConnection::get_desktop_display_scale()
|
||||
{
|
||||
return WindowManager::the().scale_factor();
|
||||
}
|
||||
|
||||
void ClientConnection::set_window_modified(i32 window_id, bool modified)
|
||||
{
|
||||
auto it = m_windows.find(window_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue