Skip to content

Commit b45e042

Browse files
committed
Make GtkWebViewEnvironmentRequestedEventArgs.ForceX11GdkBackend opt-out
1 parent 17010d5 commit b45e042

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/Avalonia.Controls.WebView.Core/Platform/GtkWebViewEnvironmentRequestedEventArgs.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ internal GtkWebViewEnvironmentRequestedEventArgs(DeferralManager deferralManager
2424
/// Gets or sets a value indicating whether GDK_BACKEND should be forced to "x11" while GTK is initialized.
2525
/// The GTK adapters require the x11 GDK backend, and a Wayland desktop usually pre-sets GDK_BACKEND=wayland, which makes gtk_init fail.
2626
/// </summary>
27-
/// <remarks>
28-
/// Disabled by default, as it temporarily mutates the process environment. The previous value is restored once GTK is initialized.
29-
/// </remarks>
30-
public bool ForceX11GdkBackend { get; set; }
27+
public bool ForceX11GdkBackend { get; set; } = true;
3128

3229
/// <summary>
3330
/// Gets or sets a value indicating whether the webview should use an ephemeral data manager, handling all website data as non-persistent and not writing anything to client storage.

0 commit comments

Comments
 (0)