xdg-shell: honor fullscreen requests

This commit is contained in:
Isaac Freund
2020-06-29 11:52:53 +02:00
parent c78d31acf4
commit 34d42d9e8c
3 changed files with 18 additions and 7 deletions

View File

@ -30,9 +30,6 @@ pub fn toggleFullscreen(
if (args.len > 1) return Error.TooManyArguments;
if (seat.focused_view) |view| {
// If transitionng from fullscreen -> float, return to the saved
// floating dimensions.
if (view.pending.fullscreen and view.pending.float) view.pending.box = view.float_box;
view.setFullscreen(!view.pending.fullscreen);
view.output.root.arrange();
}