aboutsummaryrefslogtreecommitdiff
path: root/fiv-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'fiv-view.c')
-rw-r--r--fiv-view.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fiv-view.c b/fiv-view.c
index c570f35..66944b6 100644
--- a/fiv-view.c
+++ b/fiv-view.c
@@ -547,7 +547,9 @@ fiv_view_realize(GtkWidget *widget)
//
// If GTK+'s OpenGL integration fails to deliver, we need to use the window
// directly, sidestepping the toolkit entirely.
- if (GDK_IS_X11_WINDOW(window))
+ GSettings *settings = g_settings_new(PROJECT_NS PROJECT_NAME);
+ if (GDK_IS_X11_WINDOW(window) &&
+ g_settings_get_boolean(settings, "native-view-window"))
gdk_window_ensure_native(window);
#endif // GDK_WINDOWING_X11