[mutter/wip/mult-window-actors: 2/9] Update a window's LUT only after we know it will be at the top of the stack



commit a5a1473b8e4656e8abfceee241588b7a88036a6c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Nov 3 19:55:34 2011 -0400

    Update a window's LUT only after we know it will be at the top of the stack
    
    There can be cases where we update a window's LUT and then don't show it,
    making it come first in e.g. tab popup lists or other sorts of things
    that use the mru list.

 src/core/window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index d93026c..36c68b1 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -4176,8 +4176,6 @@ window_activate (MetaWindow     *window,
       timestamp = meta_display_get_current_time_roundtrip (window->display);
     }
 
-  meta_window_set_user_time (window, timestamp);
-
   /* disable show desktop mode unless we're a desktop component */
   maybe_leave_show_desktop_mode (window);
 
@@ -4202,6 +4200,8 @@ window_activate (MetaWindow     *window,
     meta_window_change_workspace (window, workspace);
     }
 
+  meta_window_set_user_time (window, timestamp);
+
   if (window->shaded)
     meta_window_unshade (window, timestamp);
 



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