You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
678 B
23 lines
678 B
From 7ce434476407f967888cb7439b412d86a6ace70d Mon Sep 17 00:00:00 2001
|
|
From: Oliver Kurz <okurz@suse.de>
|
|
Date: Tue, 25 Oct 2016 21:50:18 +0200
|
|
Subject: [PATCH] vnc_base: Prevent 'uninitialized' warning in mouse_move
|
|
|
|
---
|
|
consoles/vnc_base.pm | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/consoles/vnc_base.pm b/consoles/vnc_base.pm
|
|
index 6d15610..7396d83 100644
|
|
--- a/consoles/vnc_base.pm
|
|
+++ b/consoles/vnc_base.pm
|
|
@@ -183,6 +183,8 @@ sub release_key {
|
|
|
|
sub _mouse_move {
|
|
my ($self, $x, $y) = @_;
|
|
+ $x //= 0;
|
|
+ $y //= 0;
|
|
|
|
if ($self->{mouse}->{x} == $x && $self->{mouse}->{y} == $y) {
|
|
# in case the mouse is moved twice to the same position
|