Skip to content

Commit ab22994

Browse files
author
User
committed
fix
1 parent 988458e commit ab22994

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

plug.app/src/linux/api/intf/main_l.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -561,10 +561,10 @@ static void on_activate(GtkApplication *app, gpointer user_data) {
561561
gtk_widget_add_tick_callback(g_drawing_area, on_tick, NULL, NULL);
562562

563563
gtk_window_set_child(GTK_WINDOW(g_window), g_drawing_area);
564-
// in headless mode under xvfb make widgets visible for GTK main loop
565-
// use gtk_widget_set_visible instead of gtk_window_present to avoid xvfb issues
566-
gtk_widget_set_visible(g_window, TRUE);
567-
gtk_widget_set_visible(g_drawing_area, TRUE);
564+
// in headless mode under xvfb realize widgets for GTK main loop
565+
// widgets need to be realized for GTK main loop to run under xvfb
566+
gtk_widget_realize(g_window);
567+
gtk_widget_realize(g_drawing_area);
568568
gtk_widget_grab_focus(g_drawing_area);
569569
} else
570570
#endif

0 commit comments

Comments
 (0)