Index: ui/views/widget/desktop_aura/x11_desktop_handler.cc |
diff --git a/ui/views/widget/desktop_aura/x11_desktop_handler.cc b/ui/views/widget/desktop_aura/x11_desktop_handler.cc |
index f33d4163e5f9125a8db3acd247a10fecd66e132b..d43b853093b6345fbfc772d611d1011879563e36 100644 |
--- a/ui/views/widget/desktop_aura/x11_desktop_handler.cc |
+++ b/ui/views/widget/desktop_aura/x11_desktop_handler.cc |
@@ -42,6 +42,7 @@ X11DesktopHandler* X11DesktopHandler::get() { |
X11DesktopHandler::X11DesktopHandler() |
: xdisplay_(gfx::GetXDisplay()), |
x_root_window_(DefaultRootWindow(xdisplay_)), |
+ wm_user_time_ms_(0), |
current_window_(None), |
atom_cache_(xdisplay_, kAtomsToCache), |
wm_supports_active_window_(false) { |
@@ -78,7 +79,7 @@ void X11DesktopHandler::ActivateWindow(::Window window) { |
xclient.xclient.message_type = atom_cache_.GetAtom("_NET_ACTIVE_WINDOW"); |
xclient.xclient.format = 32; |
xclient.xclient.data.l[0] = 1; // Specified we are an app. |
- xclient.xclient.data.l[1] = CurrentTime; |
+ xclient.xclient.data.l[1] = wm_user_time_ms_; |
xclient.xclient.data.l[2] = None; |
xclient.xclient.data.l[3] = 0; |
xclient.xclient.data.l[4] = 0; |