Skip to content

Commit

Permalink
Attempt to fix #18110.
Browse files Browse the repository at this point in the history
Using ralfbrown proposed fix.
  • Loading branch information
TurboGit committed Jan 17, 2025
1 parent d4f1bea commit f5f3c09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/gtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -4395,6 +4395,7 @@ void dt_gui_cursor_set_busy()
GtkWidget *toplevel = darktable.gui->ui->main_window;
GdkWindow *window = gtk_widget_get_window(toplevel);
busy_prev_cursor = gdk_window_get_cursor(window);
g_object_ref(busy_prev_cursor);
GdkCursor *watch = gdk_cursor_new_for_display(gtk_widget_get_display(toplevel), GDK_WATCH);
gdk_window_set_cursor(window, watch);
g_object_unref(watch);
Expand All @@ -4419,6 +4420,7 @@ void dt_gui_cursor_clear_busy()
GdkWindow *window = gtk_widget_get_window(toplevel);
gdk_window_set_cursor(window, busy_prev_cursor);
dt_gui_process_events();
g_object_unref(busy_prev_cursor);
busy_prev_cursor = NULL;
dt_control_allow_change_cursor();
gtk_grab_remove(darktable.control->progress_system.proxy.module->widget);
Expand Down

0 comments on commit f5f3c09

Please sign in to comment.