1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00

Userland: Add ability to screenshot rectangular region in shot (#8515)

* LibGUI: Verify m_window_id is not-zero in set_maximized

Window::set_maximized requires non-zero window id to be a valid call,
i.e. calling Window::show beforehand. A verify statement before the
server call can help developers by hinting correct usage.

* LibGUI: Paint background when the fullscreen window is transparent

The windows in the background are ignored when the window is fullscreen.
However, we still would like to see the background if that window is
transparent.

* Userland: Add ability to capture rectangular region in shot

A click and drag selectable, transparent, fullscreen window is
displayed with the command line argument -r for screenshots.
This commit is contained in:
Aziz Berkay Yesilyurt 2021-07-09 10:41:24 +02:00 committed by GitHub
parent ec389adaa6
commit 1c06d77262
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 105 additions and 4 deletions

View file

@ -948,6 +948,7 @@ bool Window::is_maximized() const
void Window::set_maximized(bool maximized)
{
VERIFY(m_window_id != 0);
WindowServerConnection::the().async_set_maximized(m_window_id, maximized);
}