1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
From 4569aceed6267eaeffa0fd1f9f6e4c510a548076 Mon Sep 17 00:00:00 2001
From: Stelios Tsampas <loathingkernel@gmail.com>
Date: Thu, 29 Feb 2024 15:28:48 +0200
Subject: [PATCH 7/7] AUR Enable winewayland
---
Makefile.in | 1 +
proton | 8 ++++++++
2 files changed, 9 insertions(+)
diff --git a/Makefile.in b/Makefile.in
index a80e5262..ede0804a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -426,6 +426,7 @@ WINE_SOURCE_ARGS = \
WINE_CONFIGURE_ARGS = \
--with-x \
+ --with-wayland \
--with-gstreamer \
--with-mingw \
--without-oss \
diff --git a/proton b/proton
index 89baeb8e..5ef22e8c 100755
--- a/proton
+++ b/proton
@@ -1524,6 +1524,14 @@ if __name__ == "__main__":
elif sys.argv[1] == "waitforexitandrun":
#wait for wineserver to shut down
g_session.run_proc([g_proton.wineserver_bin, "-w"])
+ winedrv = "x11"
+ if os.environ.get("PROTON_ENABLE_WAYLAND", False) and os.environ["PROTON_ENABLE_WAYLAND"] == "1":
+ del os.environ["DISPLAY"]
+ winedrv = "wayland"
+ g_session.run_proc(
+ [g_proton.wine_bin, "reg.exe", "add", "HKCU\\Software\\Wine\\Drivers", "/v", "Graphics", "/d", f"{winedrv}", "/f"]
+ )
+ g_session.run_proc([g_proton.wineserver_bin, "-w"])
#then run
rc = g_session.run()
elif sys.argv[1] == "runinprefix":
--
2.44.0
|