summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/mouse.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/mouse.pm b/perl-install/mouse.pm
index 0be74b451..e9f3df1c5 100644
--- a/perl-install/mouse.pm
+++ b/perl-install/mouse.pm
@@ -421,7 +421,9 @@ sub test_mouse_install {
test_mouse($mouse, $w, $darea, $width, $height, $x_protocol_changed);
$w->sync; # HACK
Gtk2::Gdk->pointer_grab($vbox_grab->window, 1, 'pointer_motion_mask', $vbox_grab->window, undef, 0);
- $w->main;
+ my $r = $w->main;
+ Gtk2::Gdk->pointer_ungrab(0);
+ $r;
}
sub test_mouse_standalone {