grpc-proxy: Add set_app_fullscreen functionality 52/28552/1
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 1 Mar 2023 14:57:38 +0000 (16:57 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 3 Mar 2023 10:23:36 +0000 (12:23 +0200)
commit4e4624dee9850b4a4e590dd0f0f2b3173bded085
tree4f5250eaa1c9756afcf52f3cef2ab17438e8f37f
parent9eb8ca6ac7473107ebe391c2f78543e92e461240
grpc-proxy: Add set_app_fullscreen functionality

This implements set_app_fullscreen which clients can set-up before being
mapped.

The worthwhile change here was the fact that transitioning between
fullscreen, normal, and float would cause invalid tracking of the active
window when switching between these states. This would make floating
operation display the incorrect active window, so in order to reconcile
that, we only update the previous surface if it is different that the
current active one. Otherwise this fairly similar to set_app_float.

Bug-AGL: SPEC-4673
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ie912c86ff7ac38d034cf4d97b2adbc5ef47ce9d3
grpc-proxy/agl_shell.proto
grpc-proxy/grpc-async-cb.cpp
grpc-proxy/grpc-async-cb.h
grpc-proxy/main-grpc.cpp
grpc-proxy/shell.cpp
grpc-proxy/shell.h
protocol/agl-shell.xml
src/layout.c
src/shell.c