diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-07-25 14:25:14 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-07-25 19:05:27 +0200 |
commit | dcc5b6c719bec84fe90c64037fa9a69f53095c3f (patch) | |
tree | cc9b3e6831dc27a76d099caee2e5aa22f722860f /fiv-view.c | |
parent | eca319e5e4aa76900721545531ea0d6545298143 (diff) | |
download | fiv-dcc5b6c719bec84fe90c64037fa9a69f53095c3f.tar.gz fiv-dcc5b6c719bec84fe90c64037fa9a69f53095c3f.tar.xz fiv-dcc5b6c719bec84fe90c64037fa9a69f53095c3f.zip |
Use GSettings for a new native window toggle
Also, redo desktop files handling.
Diffstat (limited to 'fiv-view.c')
-rw-r--r-- | fiv-view.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |