From edbcafa871dcde64b549948528d21fd2d396b24f Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 22 Dec 2015 13:31:47 +0300 Subject: task-title: removed some code that will never work "desktop window" won't even be shown in the list, so trying to run something on click on (non-existing) close button is pointless. --- mate-window-picker-applet/task-title.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'mate-window-picker-applet') diff --git a/mate-window-picker-applet/task-title.c b/mate-window-picker-applet/task-title.c index a766d2d..955a2ac 100644 --- a/mate-window-picker-applet/task-title.c +++ b/mate-window-picker-applet/task-title.c @@ -24,8 +24,6 @@ #include #include -#define MATE_DESKTOP_USE_UNSTABLE_API -#include #include "task-list.h" @@ -71,13 +69,8 @@ on_close_clicked (GtkButton *button, window = wnck_screen_get_active_window (priv->screen); - if (!WNCK_IS_WINDOW (window) - || wnck_window_get_window_type (window) == WNCK_WINDOW_DESKTOP) - { - mate_gdk_spawn_command_line_on_screen (gdk_screen_get_default (), - LOGOUT, NULL); - } - else + if (WNCK_IS_WINDOW (window) + && wnck_window_get_window_type (window) != WNCK_WINDOW_DESKTOP) { if (priv->window == window) disconnect_window (title); -- cgit v1.2.1