diff options
author | Thomas White <taw@physics.org> | 2020-01-11 10:17:47 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-01-11 10:17:47 +0100 |
commit | 14b9ff3d36be3d1bd027b653ef0e37fe41c5ab01 (patch) | |
tree | 8b2c822db6c59a0f2ca266794c6c2b6b325a5a55 | |
parent | 950fe28b1f865632a393223a9e45f6f3cb57b76f (diff) |
Hide the pointer
-rw-r--r-- | glitchyclock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/glitchyclock.c b/glitchyclock.c index ffaabfa..ff7e16e 100644 --- a/glitchyclock.c +++ b/glitchyclock.c @@ -271,6 +271,7 @@ static gboolean key_press_sig(GtkWidget *da, GdkEventKey *event, struct glitchyc static gint realise_sig(GtkWidget *da, struct glitchyclock *gc) { + GdkCursor *cursor; GdkWindow *win = gtk_widget_get_window(da); /* Keyboard and input method stuff */ @@ -279,6 +280,9 @@ static gint realise_sig(GtkWidget *da, struct glitchyclock *gc) gc->fontdesc = pango_font_description_from_string("DSEG7 Modern Bold Italic 16"); + cursor = gdk_cursor_new_for_display(gtk_widget_get_display(da), GDK_BLANK_CURSOR); + gdk_window_set_cursor(gtk_widget_get_window(da), cursor); + return FALSE; } |