diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/ugtk2.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index ea06998ed..00b44ab1c 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -842,11 +842,11 @@ sub _create_window($$) { if ($::o->{mouse}{unsafe}) { $w->add_events('pointer-motion-mask'); - my $signal = $w->signal_connect(motion_notify_event => sub { - my ($sig) = @_; + my $signal; #- don't make this line part of next one, signal_disconnect won't be able to access $signal value + $signal = $w->signal_connect(motion_notify_event => sub { delete $::o->{mouse}{unsafe}; log::l("unsetting unsafe mouse"); - $w->signal_disconnect($sig); + $w->signal_disconnect($signal); }); } $w->signal_connect(key_press_event => sub { |