From f96a9bb1523083508262bc699391ea4658bf58f3 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 9 Jul 2009 08:57:29 +0000 Subject: fix drakconsole not having the focus on startup (#48091) "$w->{rwindow}->set_focus($vte)" would have worked too --- drakconsole | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drakconsole') diff --git a/drakconsole b/drakconsole index 6d5bf767..46d66ee0 100755 --- a/drakconsole +++ b/drakconsole @@ -34,6 +34,8 @@ $w->{rwindow}->add(gtkpack_(Gtk2::VBox->new(0, 0), ), ); $w->{rwindow}->show_all; + +$vte->grab_focus(); #$ENV{PS1} = qq(Type "exit"\n); $vte->fork_command($ENV{SHELL}, [ $ENV{SHELL} ], [ map { "$_=$ENV{$_}" } keys %ENV ], $ENV{PWD}, 0, 0, 0); -- cgit v1.2.1