diff options
author | Liav A <liavalb@gmail.com> | 2020-02-27 17:09:41 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-28 12:16:05 +0100 |
commit | 151f32b827d779ba0d19f1a38b79350621d8e0f9 (patch) | |
tree | b1c21053be5c758882b846418be9dba96e62badd /Servers/WindowServer/Compositor.h | |
parent | 8dbd1cb9fb22c134050ab09550363abdd2c58927 (diff) | |
download | serenity-151f32b827d779ba0d19f1a38b79350621d8e0f9.zip |
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.
Diffstat (limited to 'Servers/WindowServer/Compositor.h')
-rw-r--r-- | Servers/WindowServer/Compositor.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<void(bool)>&& callback); String wallpaper_path() const { return m_wallpaper_path; } |