From 0185c288c3e6b82b76f2a0704aab0e2ab20b75b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 5 Dec 2019 13:29:38 +0100 Subject: [PATCH] perf-helper: Remove unused atoms Those aren't used for anything, but make the helper dependent on X11. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/887 --- src/shell-perf-helper.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/shell-perf-helper.c b/src/shell-perf-helper.c index ba1754e02..a50376e2e 100644 --- a/src/shell-perf-helper.c +++ b/src/shell-perf-helper.c @@ -12,7 +12,6 @@ #include #include -#include #define BUS_NAME "org.gnome.Shell.PerfHelper" @@ -60,12 +59,6 @@ static GOptionEntry opt_entries[] = { NULL } }; -static Display *xdisplay; -static Window xroot; -static Atom atom_wm_state; -static Atom atom__net_wm_name; -static Atom atom_utf8_string; - static guint timeout_id; static GList *our_windows; static GList *wait_windows_invocations; @@ -350,8 +343,6 @@ on_name_lost (GDBusConnection *connection, int main (int argc, char **argv) { - GdkDisplay *display; - GdkScreen *screen; GOptionContext *context; GError *error = NULL; @@ -367,15 +358,6 @@ main (int argc, char **argv) return 1; } - display = gdk_display_get_default (); - screen = gdk_screen_get_default (); - - xdisplay = gdk_x11_display_get_xdisplay (display); - xroot = gdk_x11_window_get_xid (gdk_screen_get_root_window (screen)); - atom_wm_state = gdk_x11_get_xatom_by_name_for_display (display, "WM_STATE"); - atom__net_wm_name = gdk_x11_get_xatom_by_name_for_display (display, "_NET_WM_NAME"); - atom_utf8_string = gdk_x11_get_xatom_by_name_for_display (display, "UTF8_STRING"); - g_bus_own_name (G_BUS_TYPE_SESSION, BUS_NAME, G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT |