From e0359028b4ac26ef2f3cd1ffec60d4facb195b17 Mon Sep 17 00:00:00 2001 From: Martin Stransky Date: Tue, 6 Nov 2018 09:44:57 +0100 Subject: Added fix for mozbz#1497534 - titlebar appearance during D&D, Added fix for mozbz#1502457- disable Contextual Feature Recommender/shield studies by default. --- mozilla-1497534.patch | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 mozilla-1497534.patch (limited to 'mozilla-1497534.patch') diff --git a/mozilla-1497534.patch b/mozilla-1497534.patch new file mode 100644 index 0000000..066c919 --- /dev/null +++ b/mozilla-1497534.patch @@ -0,0 +1,28 @@ +diff --git a/widget/gtk/nsWindow.h b/widget/gtk/nsWindow.h +--- a/widget/gtk/nsWindow.h ++++ b/widget/gtk/nsWindow.h +@@ -287,6 +287,7 @@ + // descendant windows + GtkWidget* GetMozContainerWidget(); + GdkWindow* GetGdkWindow() { return mGdkWindow; } ++ GtkWidget* GetGtkWidget() { return mShell; } + bool IsDestroyed() { return mIsDestroyed; } + + void DispatchDragEvent(mozilla::EventMessage aMsg, +diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp +--- a/widget/gtk/nsWindow.cpp ++++ b/widget/gtk/nsWindow.cpp +@@ -7480,5 +7480,10 @@ + } + } + +- return (gFocusWindow == window); +-} ++ GtkWidget* widget = window->GetGtkWidget(); ++ if (widget) { ++ return !(gtk_widget_get_state_flags(widget) & GTK_STATE_FLAG_BACKDROP); ++ } ++ ++ return false; ++} + -- cgit