From ed979b19e1c37c52a8fa84cd2e8bc1644c0c0157 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Fri, 19 Apr 2019 23:04:03 +0200 Subject: [PATCH] tasklist: Activate parent windows Bug 15307 With the fix for xfwm4 bug 14953, which allows regular transient windows to be minimized independently from their parent window, the taskbar needs to activate the parent window instead of the highest transient otherwise using the taskbar would just show/hide the toplevel instead of activating the parent window. --- plugins/tasklist/tasklist-widget.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c index 0209e192..379bb00a 100644 --- a/plugins/tasklist/tasklist-widget.c +++ b/plugins/tasklist/tasklist-widget.c @@ -3097,8 +3097,7 @@ xfce_tasklist_button_activate (XfceTasklistChild *child, panel_return_if_fail (WNCK_IS_WINDOW (child->window)); panel_return_if_fail (WNCK_IS_SCREEN (child->tasklist->screen)); - if (wnck_window_is_active (child->window) - || wnck_window_transient_is_most_recently_activated (child->window)) + if (wnck_window_is_active (child->window)) { /* minimize does not work when this is assigned to the * middle mouse button */ @@ -3205,7 +3204,7 @@ xfce_tasklist_button_activate (XfceTasklistChild *child, } } - wnck_window_activate_transient (child->window, timestamp); + wnck_window_activate (child->window, timestamp); } } -- 2.18.1