sway/bashrc: Disable MIT-SHM extension for Xwayland

MIT-SHM does not work well inside containers like systemd-nspawn
This commit is contained in:
Peter Cai 2022-12-26 08:31:33 -05:00
parent 0d9d4b363e
commit c64e51a244
2 changed files with 4 additions and 0 deletions

View File

@ -122,4 +122,5 @@ export GTK_THEME=Gruvbox-Material-Dark-HIDPI
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export SDL_IM_MODULE=fcitx
export WLR_XWAYLAND=$HOME/.local/bin/Xwayland-noshm
$MACHINE_START_SWAY && [[ -z "$DISPLAY" && $(tty) == /dev/tty1 ]] && exec sway

3
sway/.local/bin/Xwayland-noshm Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
exec /usr/bin/Xwayland -extension MIT-SHM $@