[gnome-shell] SystemMenu: wait for a completed paint before switching VT
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] SystemMenu: wait for a completed paint before switching VT
- Date: Thu, 26 Sep 2013 08:46:53 +0000 (UTC)
commit 3b1b9f589bcbf1adfcb614c23eca0b91a4b615f8
Author: Giovanni Campagna <gcampagn redhat com>
Date: Wed Sep 25 14:02:56 2013 +0200
SystemMenu: wait for a completed paint before switching VT
Activating the GDM login screen switches VT and causes X to freeze
event processing (because it lost the drm master), so must make
sure to have painted the lock screen at least once before proceeding,
or the user can go back and see the unlocked desktop.
https://bugzilla.gnome.org/show_bug.cgi?id=708051
js/ui/status/system.js | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/system.js b/js/ui/status/system.js
index c319b09..b320c77 100644
--- a/js/ui/status/system.js
+++ b/js/ui/status/system.js
@@ -372,7 +372,11 @@ const Indicator = new Lang.Class({
Main.overview.hide();
if (Main.screenShield)
Main.screenShield.lock(false);
- Gdm.goto_login_session_sync(null);
+
+ Clutter.threads_add_repaint_func_full(Clutter.RepaintFlags.POST_PAINT, function() {
+ Gdm.goto_login_session_sync(null);
+ return false;
+ });
},
_onQuitSessionActivate: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]