mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 06:45:42 +00:00
Bug 983843 - Switch to GtkOffscreenWindow for drag source widget, fixing ghost tabs on some GTK versions. r=karlt
--HG-- extra : rebase_source : 278ba83eed30b1ff7d0824822a6ab6518f3313f7
This commit is contained in:
parent
b6a6d26147
commit
e47140908b
@ -504,6 +504,7 @@ STUB(gtk_get_major_version)
|
||||
STUB(gtk_get_micro_version)
|
||||
STUB(gtk_get_minor_version)
|
||||
STUB(gtk_menu_button_new)
|
||||
STUB(gtk_offscreen_window_new)
|
||||
STUB(gtk_paned_new)
|
||||
STUB(gtk_render_activity)
|
||||
STUB(gtk_render_arrow)
|
||||
|
@ -102,7 +102,12 @@ nsDragService::nsDragService()
|
||||
obsServ->AddObserver(this, "quit-application", false);
|
||||
|
||||
// our hidden source widget
|
||||
#if (MOZ_WIDGET_GTK == 2)
|
||||
mHiddenWidget = gtk_window_new(GTK_WINDOW_POPUP);
|
||||
#else
|
||||
// Using an offscreen window works around bug 983843.
|
||||
mHiddenWidget = gtk_offscreen_window_new();
|
||||
#endif
|
||||
// make sure that the widget is realized so that
|
||||
// we can use it as a drag source.
|
||||
gtk_widget_realize(mHiddenWidget);
|
||||
|
Loading…
Reference in New Issue
Block a user