[libwnck/wip/muktupavels/use-wnck-handle] resource-usage: use WnckHandle to get screen
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck/wip/muktupavels/use-wnck-handle] resource-usage: use WnckHandle to get screen
- Date: Thu, 24 Feb 2022 15:59:08 +0000 (UTC)
commit 3acbfe53def43bd9eaf518ae0b8d5d022c73e6df
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Feb 24 17:58:32 2022 +0200
resource-usage: use WnckHandle to get screen
libwnck/wnck-resource-usage.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/libwnck/wnck-resource-usage.c b/libwnck/wnck-resource-usage.c
index b413c531..1bb5f4ed 100644
--- a/libwnck/wnck-resource-usage.c
+++ b/libwnck/wnck-resource-usage.c
@@ -24,6 +24,7 @@
#include <X11/extensions/XRes.h>
#endif
+#include "private.h"
#include "screen.h"
#include "window.h"
#include "xutils.h"
@@ -394,7 +395,7 @@ wnck_pid_read_resource_usage_no_cache (GdkDisplay *gdisplay,
GList *windows;
GList *tmp;
- screen = wnck_screen_get (i);
+ screen = _wnck_handle_get_screen (_wnck_get_handle (), i);
g_assert (screen != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]