mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +00:00
WindowServer+LibGUI: Allow switching windows in/out of fullscreen mode
You can now call GWindow::set_fullscreen(bool) and it will go in or out of fullscreen mode. WindowServer will also remember the previous window rect when switching to fullscreen, and restore it when switching back. :^)
This commit is contained in:
parent
a34f3a3729
commit
d92e26d023
8 changed files with 78 additions and 1 deletions
|
@ -113,6 +113,7 @@ struct WSAPI_ServerMessage {
|
|||
DidSetWindowHasAlphaChannel,
|
||||
ScreenRectChanged,
|
||||
ClipboardContentsChanged,
|
||||
DidSetFullscreen,
|
||||
|
||||
__Begin_WM_Events__,
|
||||
WM_WindowRemoved,
|
||||
|
@ -237,6 +238,7 @@ struct WSAPI_ClientMessage {
|
|||
SetWindowHasAlphaChannel,
|
||||
MoveWindowToFront,
|
||||
SetWindowIconBitmap,
|
||||
SetFullscreen,
|
||||
};
|
||||
Type type { Invalid };
|
||||
int window_id { -1 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue