Fixed JavaFX issues with gnome-shell
This commit is contained in:
parent
a1fe34992d
commit
fb8c5c2378
|
@ -100,7 +100,14 @@ class GtkSystemTray extends GtkTypeSystemTray {
|
||||||
// can cause
|
// can cause
|
||||||
// Gdk-CRITICAL **: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed
|
// Gdk-CRITICAL **: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed
|
||||||
// Gdk-CRITICAL **: IA__gdk_window_thaw_toplevel_updates_libgtk_only: assertion 'private->update_and_descendants_freeze_count > 0' failed
|
// Gdk-CRITICAL **: IA__gdk_window_thaw_toplevel_updates_libgtk_only: assertion 'private->update_and_descendants_freeze_count > 0' failed
|
||||||
// Gtk.gtk_status_icon_set_name(trayIcon, "SystemTray");
|
|
||||||
|
// ... so, bizzaro things going on here. These errors DO NOT happen if JavaFX is dispatching the events.
|
||||||
|
// BUT this is REQUIRED when running JavaFX. For unknown reasons, the title isn't pushed to GTK, so our
|
||||||
|
// gnome-shell extension cannot see our tray icon -- so naturally, it won't move it to the "top" area and
|
||||||
|
// we appear broken.
|
||||||
|
if (SystemTray.isJavaFxLoaded) {
|
||||||
|
Gtk.gtk_status_icon_set_name(trayIcon, "SystemTray");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user