[gnome-kiosk/detect-kiosk-app-better] compositor: Be more permissive about what's considered fullscreen




commit 1accdb76f0c787a4d64569f2bb1b46cb711c1f9e
Author: Ray Strode <rstrode redhat com>
Date:   Thu Oct 6 11:01:20 2022 -0400

    compositor: Be more permissive about what's considered fullscreen
    
    GNOME Kiosk will automatically fullscreen the application started
    for it, but sometimes that application will start another app.
    
    The second app should not be automatically fullscreened.
    
    Some apps go fullscreen without actually going fullscreen though.
    They just go monitor sized.
    
    This commit makes sure those apps count as fullscreen too.

 compositor/kiosk-compositor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/compositor/kiosk-compositor.c b/compositor/kiosk-compositor.c
index 4d9c94d..86a10a4 100644
--- a/compositor/kiosk-compositor.c
+++ b/compositor/kiosk-compositor.c
@@ -306,7 +306,7 @@ kiosk_compositor_wants_window_fullscreen (KioskCompositor *self,
         for (node = windows; node != NULL; node = node->next) {
                 MetaWindow *existing_window = node->data;
 
-                if (meta_window_is_fullscreen (existing_window)) {
+                if (meta_window_is_monitor_sized (existing_window)) {
                         return FALSE;
                 }
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]