From 151f32b827d779ba0d19f1a38b79350621d8e0f9 Mon Sep 17 00:00:00 2001 From: Liav A Date: Thu, 27 Feb 2020 17:09:41 +0200 Subject: WindowServer: Return richer result when changing resolutions Now we return a boolean value from set_resolution() in the Compositor and Screen class. Also, the WindowServer IPC now returns a richer result after changing the resolution, which can be used in clients later. --- Servers/WindowServer/Compositor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Servers/WindowServer/Compositor.h') diff --git a/Servers/WindowServer/Compositor.h b/Servers/WindowServer/Compositor.h index 14d2423b4a..8a20b6c5c5 100644 --- a/Servers/WindowServer/Compositor.h +++ b/Servers/WindowServer/Compositor.h @@ -53,7 +53,7 @@ public: void invalidate(); void invalidate(const Gfx::Rect&); - void set_resolution(int desired_width, int desired_height); + bool set_resolution(int desired_width, int desired_height); bool set_wallpaper(const String& path, Function&& callback); String wallpaper_path() const { return m_wallpaper_path; } -- cgit v1.2.3