summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-03-17 14:18:47 +0000
committerDaouda Lo <daouda@mandriva.com>2004-03-17 14:18:47 +0000
commit5b69430d4a3e1091cc3e79755a0ac1ce8dcdcf41 (patch)
treecee4a3b70ace77579b3f214de36c7f9de3b85d10 /mdkapplet
parent2b788ed92e5a00e48c65a458a54309f6b6d93308 (diff)
downloadmgaonline-5b69430d4a3e1091cc3e79755a0ac1ce8dcdcf41.tar
mgaonline-5b69430d4a3e1091cc3e79755a0ac1ce8dcdcf41.tar.gz
mgaonline-5b69430d4a3e1091cc3e79755a0ac1ce8dcdcf41.tar.bz2
mgaonline-5b69430d4a3e1091cc3e79755a0ac1ce8dcdcf41.tar.xz
mgaonline-5b69430d4a3e1091cc3e79755a0ac1ce8dcdcf41.zip
- do not show plenty of windows anytime
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet7
1 files changed, 3 insertions, 4 deletions
diff --git a/mdkapplet b/mdkapplet
index 7a606d92..315c3c11 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -104,11 +104,10 @@ gtkadd(my $icon = Gtk2::TrayIcon->new("MdkApplet"),
$eventbox->signal_connect(button_press_event => sub {
if (!$raisedwindow) {
if ($_[1]->button == 1) {
- if (-e $conffile) { showMainWindow() } else { configure() }
+ if (-e $conffile) { $raisedwindow = 1; showMainWindow() } else { configure(); $raisedwindow = 0 }
}
- $_[1]->button == 3 && $menu and $menu->popup(undef, undef, undef, undef, $_[1]->button, $_[1]->time);
- $raisedwindow = 1;
- }
+ }
+ $_[1]->button == 3 && $menu and $menu->popup(undef, undef, undef, undef, $_[1]->button, $_[1]->time);
});
my ($opt) = @ARGV;
if ($opt eq '--force' || $opt eq '-f') { setAutoStart('TRUE') };