[Xfce4-commits] <postler:master> Never focus hidden widgets, it can break typing entirely
Christian Dywan
noreply at xfce.org
Fri Feb 25 22:20:01 CET 2011
Updating branch refs/heads/master
to 217ead2b37f9be0f6b1a3c212ccf0c92a145e49b (commit)
from 7211e8fd9bef76482860f728155c9913d507a580 (commit)
commit 217ead2b37f9be0f6b1a3c212ccf0c92a145e49b
Author: Christian Dywan <christian at twotoasts.de>
Date: Fri Feb 25 22:17:34 2011 +0100
Never focus hidden widgets, it can break typing entirely
This could cause the welcome screen to not take any input
from the keyboard.
postler/postler-bureau.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/postler/postler-bureau.vala b/postler/postler-bureau.vala
index 25fb2d4..9dd0e3f 100644
--- a/postler/postler-bureau.vala
+++ b/postler/postler-bureau.vala
@@ -870,7 +870,9 @@ public class Postler.Bureau : Gtk.Window {
folders.messages = messages;
messages.content = content;
- folders.grab_focus ();
+ /* Never focus hidden widgets: assertion `WIDGET_REALIZED_FOR_EVENT */
+ if (folders.visible)
+ folders.grab_focus ();
GLib.Idle.add (() => {
folders.select_folder (previous_state.open_folder);
return false;
More information about the Xfce4-commits
mailing list