mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:17:35 +00:00
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.
This commit is contained in:
parent
8dbd1cb9fb
commit
151f32b827
8 changed files with 46 additions and 21 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue