mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +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
Notes:
sideshowbarker
2024-07-18 12:46:34 +09:00
Author: https://github.com/awesomekosm 🔰
Commit: 4ef85de9dc
Pull-request: https://github.com/SerenityOS/serenity/pull/7833
Reviewed-by: https://github.com/vkoskiv ✅
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