[libwnck/wip/muktupavels/use-wnck-handle] window: use WnckHandle to get application



commit b8396d5aeebe82e53ef84ed895ffad3cf584e39c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Feb 24 14:08:23 2022 +0200

    window: use WnckHandle to get application

 libwnck/window.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/libwnck/window.c b/libwnck/window.c
index 5e206756..7fbc1492 100644
--- a/libwnck/window.c
+++ b/libwnck/window.c
@@ -1165,11 +1165,13 @@ _wnck_window_get_startup_id (WnckWindow *window)
   if (window->priv->startup_id == NULL &&
       window->priv->group_leader != None)
     {
+      WnckHandle *handle;
       WnckApplication *app;
 
       /* Fall back to group leader property */
 
-      app = wnck_application_get (window->priv->group_leader);
+      handle = _wnck_screen_get_handle (window->priv->screen);
+      app = _wnck_handle_get_application (handle, window->priv->group_leader);
 
       if (app != NULL)
         return wnck_application_get_startup_id (app);


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