Commit 8ef21cb3 authored by Matthias Clasen's avatar Matthias Clasen

wayland: Fix a thinko in settings portal support

When we decide to fall back because the settings portal
is not present, adhere to that decision elsewhere.
parent 64427e98
...@@ -346,7 +346,7 @@ update_xft_settings (GdkScreen *screen) ...@@ -346,7 +346,7 @@ update_xft_settings (GdkScreen *screen)
GsdXftSettings xft_settings; GsdXftSettings xft_settings;
double dpi; double dpi;
if (gdk_should_use_portal ()) if (screen_wayland->settings_portal)
{ {
TranslationEntry *entry; TranslationEntry *entry;
...@@ -822,7 +822,7 @@ set_value_from_entry (GdkScreen *screen, ...@@ -822,7 +822,7 @@ set_value_from_entry (GdkScreen *screen,
GdkWaylandScreen *screen_wayland = GDK_WAYLAND_SCREEN (screen); GdkWaylandScreen *screen_wayland = GDK_WAYLAND_SCREEN (screen);
GSettings *settings; GSettings *settings;
if (gdk_should_use_portal ()) if (screen_wayland->settings_portal)
{ {
switch (entry->type) switch (entry->type)
{ {
...@@ -917,7 +917,7 @@ set_decoration_layout_from_entry (GdkScreen *screen, ...@@ -917,7 +917,7 @@ set_decoration_layout_from_entry (GdkScreen *screen,
GSettings *settings = NULL; GSettings *settings = NULL;
const char *session; const char *session;
if (gdk_should_use_portal ()) if (screen_wayland->settings_portal)
{ {
g_value_set_string (value, entry->fallback.s); g_value_set_string (value, entry->fallback.s);
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment