From 096bde4f459c313b69e9b3f2d7fbccd074a75867 Mon Sep 17 00:00:00 2001 From: donRaphaco <24398112+donRaphaco@users.noreply.github.com> Date: Thu, 4 Jan 2018 19:53:12 +0100 Subject: [PATCH] fixed formatting error --- src/mconnect/mousepad.vala | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/mconnect/mousepad.vala b/src/mconnect/mousepad.vala index a4243fd..7514a2d 100644 --- a/src/mconnect/mousepad.vala +++ b/src/mconnect/mousepad.vala @@ -84,17 +84,16 @@ class MousepadHandler : Object, PacketHandlerInterface { while (dy > 3.0) { // scroll down send_click (5); - dy/=4.0; + dy /= 4.0; debug ("scroll down"); } while (dy < -3.0) { // scroll up send_click (4); - dy/=4.0; + dy /= 4.0; debug ("scroll up"); } - } - else { + } else { debug ("position: %f x %f", dx, dy); move_cursor_relative (dx, dy); @@ -119,7 +118,7 @@ class MousepadHandler : Object, PacketHandlerInterface { } private void send_click (int button, bool doubleclick = false) { - var etype = "b%ic".printf(button); + var etype = "b%ic".printf (button); try { int x, y; _display.get_pointer (null, out x, out y, null); @@ -163,4 +162,4 @@ class MousepadHandler : Object, PacketHandlerInterface { warning ("failed to generate keyboard event: %s", e.message); } } -} +} \ No newline at end of file