mirror of
https://github.com/swaywm/sway.git
synced 2024-12-01 10:56:36 +00:00
Created Running programs natively under Wayland (markdown)
parent
f2028ea85b
commit
70185c3e58
33
Running-programs-natively-under-Wayland.md
Normal file
33
Running-programs-natively-under-Wayland.md
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
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.
|
||||||
|
|
||||||
|
## GTK+ (3.0+)
|
||||||
|
```
|
||||||
|
GDK_BACKEND=wayland
|
||||||
|
CLUTTER_BACKEND=wayland
|
||||||
|
```
|
||||||
|
|
||||||
|
## Qt5
|
||||||
|
```
|
||||||
|
QT_QPA_PLATFORM=wayland-egl
|
||||||
|
```
|
||||||
|
|
||||||
|
## Elementary/EFL
|
||||||
|
```
|
||||||
|
ECORE_EVAS_ENGINE=wayland_egl
|
||||||
|
ELM_ENGINE=wayland_egl
|
||||||
|
```
|
||||||
|
|
||||||
|
You could set them to `wayland_shm` instead, if you want to use software rendering.
|
||||||
|
|
||||||
|
## SDL
|
||||||
|
```
|
||||||
|
SDL_VIDEODRIVER=wayland
|
||||||
|
```
|
||||||
|
|
||||||
|
## Java
|
||||||
|
Some Java awt applications would not display properly unless you set the following.
|
||||||
|
```
|
||||||
|
_JAVA_AWT_WM_NONREPARENTING=1`
|
||||||
|
```
|
Loading…
Reference in a new issue