diff --git a/src/core/window-private.h b/src/core/window-private.h index c72dc41d8..e69b1ea85 100644 --- a/src/core/window-private.h +++ b/src/core/window-private.h @@ -201,8 +201,6 @@ struct _MetaWindow char *gtk_app_menu_object_path; char *gtk_menubar_object_path; - int net_wm_pid; - Window xtransient_for; Window xgroup_leader; Window xclient_leader; diff --git a/src/core/window.c b/src/core/window.c index d3b2c7d7e..ad1ff6112 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -1149,8 +1149,6 @@ _meta_window_shared_new (MetaDisplay *display, window->is_remote = FALSE; window->startup_id = NULL; - window->net_wm_pid = -1; - window->xtransient_for = None; window->xclient_leader = None; diff --git a/src/x11/window-props.c b/src/x11/window-props.c index f2208af94..11bf50c88 100644 --- a/src/x11/window-props.c +++ b/src/x11/window-props.c @@ -428,27 +428,6 @@ reload_wm_window_role (MetaWindow *window, window->role = g_strdup (value->v.str); } -static void -reload_net_wm_pid (MetaWindow *window, - MetaPropValue *value, - gboolean initial) -{ - if (value->type != META_PROP_VALUE_INVALID) - { - uint32_t cardinal = (int) value->v.cardinal; - - if (cardinal <= 0) - meta_warning ("Application set a bogus _NET_WM_PID %u\n", - cardinal); - else - { - window->net_wm_pid = cardinal; - meta_verbose ("Window has _NET_WM_PID %d\n", - window->net_wm_pid); - } - } -} - static void reload_net_wm_user_time (MetaWindow *window, MetaPropValue *value, @@ -1855,7 +1834,6 @@ meta_x11_display_init_window_prop_hooks (MetaX11Display *x11_display) { x11_display->atom_WM_CLIENT_MACHINE, META_PROP_VALUE_STRING, reload_wm_client_machine, LOAD_INIT | INCLUDE_OR }, { x11_display->atom__NET_WM_NAME, META_PROP_VALUE_UTF8, reload_net_wm_name, LOAD_INIT | INCLUDE_OR }, { XA_WM_CLASS, META_PROP_VALUE_CLASS_HINT, reload_wm_class, LOAD_INIT | INCLUDE_OR }, - { x11_display->atom__NET_WM_PID, META_PROP_VALUE_CARDINAL, reload_net_wm_pid, LOAD_INIT | INCLUDE_OR }, { XA_WM_NAME, META_PROP_VALUE_TEXT_PROPERTY, reload_wm_name, LOAD_INIT | INCLUDE_OR }, { x11_display->atom__MUTTER_HINTS, META_PROP_VALUE_TEXT_PROPERTY, reload_mutter_hints, LOAD_INIT | INCLUDE_OR }, { x11_display->atom__NET_WM_OPAQUE_REGION, META_PROP_VALUE_CARDINAL_LIST, reload_opaque_region, LOAD_INIT | INCLUDE_OR },