[gnome-applets/wip/segeiger/window-picker-in-process: 2/9] windowpicker/task-item.c: Use activate_transient function to activate window



commit 9a0146ea3a9ddc11eddbc9e5756750b0c4c8bb00
Author: Sebastian Geiger <sbastig gmx net>
Date:   Mon Jun 8 22:43:33 2015 +0200

    windowpicker/task-item.c: Use activate_transient function to activate window
    
    This change makes sure that if a window is activated and it has a dialog
    or other transient window open, the transient window will be activated
    instead of the parent window.

 windowpicker/src/task-item.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/windowpicker/src/task-item.c b/windowpicker/src/task-item.c
index 4597bfc..63bc48c 100644
--- a/windowpicker/src/task-item.c
+++ b/windowpicker/src/task-item.c
@@ -140,12 +140,12 @@ static gboolean on_task_item_button_released (
         if (WNCK_IS_WORKSPACE (workspace)
             && workspace != wnck_screen_get_active_workspace (screen))
         {
-                wnck_workspace_activate (workspace, event->time);
+            wnck_workspace_activate (workspace, gtk_get_current_event_time ());
         }
         if (wnck_window_is_active (window)) {
             wnck_window_minimize (window);
         } else {
-            wnck_window_activate (window, event->time);
+            wnck_window_activate_transient (window, gtk_get_current_event_time ());
         }
     }
     return TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]