diff options
Diffstat (limited to 'mate-window-picker-applet/task-title.c')
-rw-r--r-- | mate-window-picker-applet/task-title.c | 11 |
1 files changed, 2 insertions, 9 deletions
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 <mate-panel-applet.h> #include <math.h> -#define MATE_DESKTOP_USE_UNSTABLE_API -#include <libmate-desktop/mate-desktop-utils.h> #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); |