From f2565ea561179c14c7077655da648e33cb7eb4ad Mon Sep 17 00:00:00 2001 From: Jiri Konecny Date: Oct 10 2016 10:01:22 +0000 Subject: Add patch to fix GUI layout issues on Wayland --- diff --git a/0010-Fix-GUI-layouts-on-Wayland.patch b/0010-Fix-GUI-layouts-on-Wayland.patch new file mode 100644 index 0000000..3e68355 --- /dev/null +++ b/0010-Fix-GUI-layouts-on-Wayland.patch @@ -0,0 +1,26 @@ +From dad2db1c6a5c596c8ec7ab4a1b4030643c294edc Mon Sep 17 00:00:00 2001 +From: Jiri Konecny +Date: Mon, 10 Oct 2016 10:49:38 +0200 +Subject: [PATCH] Fix GUI layouts on Wayland + +This is just a hotfix and it should be fixed properly in the code later. +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 2242fa6..4f2d134 100644 +--- a/Makefile ++++ b/Makefile +@@ -49,7 +49,7 @@ build: + $(CC) ./src/check_direct_rendering.c -o ./bin/playonlinux-check_dd + $(PYTHON) ./python/*.py + $(PYTHON) ./python/lib/*.py +- echo -e '#!/bin/bash\n${sharedir}/playonlinux/playonlinux "$$@"\nexit 0' > ./bin/playonlinux ++ echo -e '#!/bin/bash\nGDK_BACKEND=x11 ${sharedir}/playonlinux/playonlinux "$$@"\nexit 0' > ./bin/playonlinux + echo -e '#!/bin/bash\n${sharedir}/playonlinux/playonlinux-pkg "$$@"\nexit 0' > ./bin/playonlinux-pkg + chmod +x ./bin/playonlinux + chmod +x ./bin/playonlinux-pkg +-- +2.7.4 + diff --git a/playonlinux.spec b/playonlinux.spec index 15e936d..0dd58f5 100644 --- a/playonlinux.spec +++ b/playonlinux.spec @@ -3,7 +3,7 @@ Version: 4.2.10 Summary: Graphical front-end for Wine License: GPLv3 URL: https://www.playonlinux.com -Release: 8%{?dist} +Release: 9%{?dist} Requires: unzip Requires: wine Requires: wget @@ -50,6 +50,9 @@ Patch7: 0008-Fix-bad-icon-path-in-Desktop-file.patch # Update AppData.xml with new values # https://github.com/PlayOnLinux/POL-POM-4/pull/41 Patch8: 0009-Update-PlayOnLinux.appdata.xml-to-new-format.patch +# Fix GUI layouts on Wayland +# https://github.com/PlayOnLinux/POL-POM-4/pull/42 +Patch9: 0010-Fix-GUI-layouts-on-Wayland.patch %global BUILD_DIR %{buildroot}/%{_datadir}/%{name} @@ -91,6 +94,9 @@ appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/PlayOnLin %{_libexecdir}/playonlinux-check_dd %changelog +* Mon Oct 10 2016 Jiri Konecny - 4.2.10-9 +- Add patch to fix GUI layout issues on Wayland + * Sat Sep 3 2016 Jiri Konecny - 4.2.10-8 - Add new patch for the updated appdata.xml file - Improve old Patch2 for desktop file