From: Jon A. Cruz Date: Fri, 2 Jul 2010 20:54:46 +0000 (-0700) Subject: Added hidden preference to re-enable floating dialogs on problematic window managers. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=56938fe26782f76ba70e9422c1580c50e42c7411;p=inkscape.git Added hidden preference to re-enable floating dialogs on problematic window managers. --- diff --git a/src/preferences-skeleton.h b/src/preferences-skeleton.h index c334ae31e..dd925490e 100644 --- a/src/preferences-skeleton.h +++ b/src/preferences-skeleton.h @@ -343,6 +343,7 @@ static char const preferences_skeleton[] = " \n" " \n" " \n" " \n" diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index c255e087b..b68d8404d 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -992,7 +992,8 @@ static GtkWidget* toolboxNewCommon( GtkWidget* tb, BarId id, GtkPositionType han gtk_widget_set_sensitive(tb, FALSE); GtkWidget *hb = 0; - if ( UXManager::getInstance()->isFloatWindowProblem() ) { + gboolean forceFloatAllowed = Inkscape::Preferences::get()->getBool("/options/workarounds/floatallowed", false); + if ( UXManager::getInstance()->isFloatWindowProblem() && !forceFloatAllowed ) { hb = gtk_event_box_new(); // A simple, neutral container. } else { hb = gtk_handle_box_new();