diff --git a/Running-programs-natively-under-Wayland.md b/Running-programs-natively-under-Wayland.md index f79bd3d..b646368 100644 --- a/Running-programs-natively-under-Wayland.md +++ b/Running-programs-natively-under-Wayland.md @@ -1,25 +1,30 @@ -If your toolkit/library supports this, you can have your apps run natively (without XWayland) by setting some environmental variables (you can add them to your launcher script or a session file (if you're using a dm)). - -Beware: clipboard synchronization between X and Wayland is not yet implemented. +If your toolkit/library supports this, you can have your apps run natively (without Xwayland) by setting some environment variables (you can add them to your launcher script or a session file (if you're using a dm)). ## GTK+ (3.0+) + +Wayland should be selected by default. If not: + ``` GDK_BACKEND=wayland CLUTTER_BACKEND=wayland ``` -GTK+3 renders CSD (client-side decorations) under the wayland by default. To disable them, apply the following patch to GTK+: [https://bugzilla.gnome.org/show_bug.cgi?id=781909](https://bugzilla.gnome.org/show_bug.cgi?id=781909). +~~GTK+3 renders CSD (client-side decorations) under the Wayland by default. To disable them, apply the following patch to GTK+: [https://bugzilla.gnome.org/show_bug.cgi?id=781909](https://bugzilla.gnome.org/show_bug.cgi?id=781909).~~ ## Qt5 + ``` QT_QPA_PLATFORM=wayland-egl ``` -Qt5 renders CSD (client-side decorations) under the wayland backend by default. To disable them, set the following. + +~~Qt5 renders CSD (client-side decorations) under the Wayland backend by default. To disable them, set the following.~~ + ``` QT_WAYLAND_DISABLE_WINDOWDECORATION=1 ``` ## Elementary/EFL + ``` ECORE_EVAS_ENGINE=wayland_egl ELM_ENGINE=wayland_egl @@ -28,12 +33,15 @@ ELM_ENGINE=wayland_egl You could set them to `wayland_shm` instead, if you want to use software rendering. ## SDL + ``` SDL_VIDEODRIVER=wayland ``` -## Java +## Java under Xwayland + Some Java AWT applications would not display properly unless you set the following. + ``` _JAVA_AWT_WM_NONREPARENTING=1 ``` \ No newline at end of file