Blame SOURCES/0001-compositor-Be-more-permissive-about-what-s-considere.patch

c166ff
From a57b5436cdce6b09daf968d1ff563b0b2e233daa Mon Sep 17 00:00:00 2001
c166ff
From: Ray Strode <rstrode@redhat.com>
c166ff
Date: Thu, 6 Oct 2022 11:01:20 -0400
c166ff
Subject: [PATCH] compositor: Be more permissive about what's considered
c166ff
 fullscreen
c166ff
c166ff
GNOME Kiosk will automatically fullscreen the application started
c166ff
for it, but sometimes that application will start another app.
c166ff
c166ff
The second app should not be automatically fullscreened.
c166ff
c166ff
Some apps go fullscreen without actually going fullscreen though.
c166ff
They just go monitor sized.
c166ff
c166ff
This commit makes sure those apps count as fullscreen too.
c166ff
---
c166ff
 compositor/kiosk-compositor.c | 2 +-
c166ff
 1 file changed, 1 insertion(+), 1 deletion(-)
c166ff
c166ff
diff --git a/compositor/kiosk-compositor.c b/compositor/kiosk-compositor.c
c166ff
index 2db58ed..c611bb9 100644
c166ff
--- a/compositor/kiosk-compositor.c
c166ff
+++ b/compositor/kiosk-compositor.c
c166ff
@@ -282,61 +282,61 @@ kiosk_compositor_size_change (MetaPlugin      *plugin,
c166ff
 static gboolean
c166ff
 kiosk_compositor_wants_window_fullscreen (KioskCompositor *self,
c166ff
                                           MetaWindow      *window)
c166ff
 {
c166ff
         MetaWindowType window_type;
c166ff
         g_autoptr (GList) windows = NULL;
c166ff
         GList *node;
c166ff
 
c166ff
         if (!meta_window_allows_resize (window)) {
c166ff
                 g_debug ("KioskCompositor: Window does not allow resizes");
c166ff
                 return FALSE;
c166ff
         }
c166ff
 
c166ff
         if (meta_window_is_override_redirect (window)) {
c166ff
                 g_debug ("KioskCompositor: Window is override redirect");
c166ff
                 return FALSE;
c166ff
         }
c166ff
 
c166ff
         window_type = meta_window_get_window_type (window);
c166ff
 
c166ff
         if (window_type != META_WINDOW_NORMAL) {
c166ff
                 g_debug ("KioskCompositor: Window is not normal");
c166ff
                 return FALSE;
c166ff
         }
c166ff
 
c166ff
         windows = meta_display_get_tab_list (self->display, META_TAB_LIST_NORMAL_ALL, NULL);
c166ff
 
c166ff
         for (node = windows; node != NULL; node = node->next) {
c166ff
                 MetaWindow *existing_window = node->data;
c166ff
 
c166ff
-                if (meta_window_is_fullscreen (existing_window)) {
c166ff
+                if (meta_window_is_monitor_sized (existing_window)) {
c166ff
                         return FALSE;
c166ff
                 }
c166ff
         }
c166ff
 
c166ff
         return TRUE;
c166ff
 }
c166ff
 
c166ff
 static gboolean
c166ff
 kiosk_compositor_wants_window_above (KioskCompositor *self,
c166ff
                                      MetaWindow      *window)
c166ff
 {
c166ff
         if (meta_window_is_screen_sized (window)) {
c166ff
                 return FALSE;
c166ff
         }
c166ff
 
c166ff
         if (meta_window_is_monitor_sized (window)) {
c166ff
                 return FALSE;
c166ff
         }
c166ff
 
c166ff
         return TRUE;
c166ff
 }
c166ff
 
c166ff
 static void
c166ff
 on_faded_in (KioskCompositor   *self,
c166ff
              ClutterTransition *transition)
c166ff
 {
c166ff
         MetaWindowActor *actor = g_object_get_data (G_OBJECT (transition), "actor");
c166ff
 
c166ff
         meta_plugin_map_completed (META_PLUGIN (self), actor);
c166ff
 }
c166ff
-- 
c166ff
2.35.1
c166ff