[xdg-desktop-portal-gnome] ScreenCast: close screencast dialog when the session is closed from the client side



commit 5450d65d61ea927752c001dff9f94cb9fd7baf7a
Author: Jan Grulich <jgrulich redhat com>
Date:   Tue Jun 14 15:39:26 2022 +0200

    ScreenCast: close screencast dialog when the session is closed from the client side
    
    When the session is closed, for example trying to share a screen in Chrome and closing
    the web page while having the portal dialog still open, it will not take down the dialog
    and instead it just gets hidden below Chrome's window.

 src/screencast.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/screencast.c b/src/screencast.c
index aa1472a..7bf516e 100644
--- a/src/screencast.c
+++ b/src/screencast.c
@@ -868,6 +868,8 @@ screen_cast_session_close (Session *session)
                    error->message);
       g_clear_object (&screen_cast_session->gnome_screen_cast_session);
     }
+
+  screen_cast_dialog_handle_close (screen_cast_session->dialog_handle);
 }
 
 static void


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