Clone in a terminal:
Commit 90f4bf4
Johan Mattsson - 2015-04-24T16:29:49+00:00
90f4bf41d007294d08941943307a7cb54adfe543johan.mattsson.m@gmail.com

Hide cursor

Changed files (2)

Diff

diff --git a/libbirdfont/NativeWindow.vala b/libbirdfont/NativeWindow.valaindex b2cce90..eebca75 100644--- a/libbirdfont/NativeWindow.vala+++ b/libbirdfont/NativeWindow.vala@@ -63,6 +63,9 @@ public interface NativeWindow : GLib.Object { 	 	/** @return true if the current font can be exported. */ 	public abstract bool can_export ();++	/** Set cursor visibility */+	public abstract bool set_cursor (bool visible); }  }diff --git a/libbirdfont/PenTool.vala b/libbirdfont/PenTool.valaindex ebf8ea6..25533a5 100644--- a/libbirdfont/PenTool.vala+++ b/libbirdfont/PenTool.vala@@ -557,6 +557,12 @@ public class PenTool : Tool { 			move_selected_handle = false; 		} +		if (move_selected_handle || move_selected) {+			MainWindow.native_window.set_cursor (false);+		} else {+			MainWindow.native_window.set_cursor (true);+		}+ 		// move control point handles 		if (move_selected_handle) { 			set_type_for_moving_handle ();

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112