summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r--perl-install/ugtk2.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 00b44ab1c..ea06998ed 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; #- 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 {
+ my $signal = $w->signal_connect(motion_notify_event => sub {
+ my ($sig) = @_;
delete $::o->{mouse}{unsafe};
log::l("unsetting unsafe mouse");
- $w->signal_disconnect($signal);
+ $w->signal_disconnect($sig);
});
}
$w->signal_connect(key_press_event => sub {