From b5b4decd38a4792bde50873d3eef885e5db7b0f9 Mon Sep 17 00:00:00 2001 From: B Stack Date: Wed, 17 Feb 2021 09:04:11 -0500 Subject: add -source geometry fix --- xzoom/001-geometry.patch | 15 +++++++++++++++ xzoom/xzoom.spec | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 xzoom/001-geometry.patch (limited to 'xzoom') diff --git a/xzoom/001-geometry.patch b/xzoom/001-geometry.patch new file mode 100644 index 0000000..c177957 --- /dev/null +++ b/xzoom/001-geometry.patch @@ -0,0 +1,15 @@ +--- a/xzoom.c 2021-02-17 08:22:07.982026476 -0500 ++++ b/xzoom.c 2021-02-17 08:23:25.119959190 -0500 +@@ -527,10 +527,10 @@ + if(dest_geom_mask & XNegative) + xpos += WidthOfScreen(scr); + +- if(source_geom_mask & YNegative) ++ if(dest_geom_mask & YNegative) + ypos += HeightOfScreen(scr); + +- /* printf("=%dx%d+%d+%d\n", width[DST], height[DST], xpos, ypos); */ ++ printf("=%dx%d+%d+%d\n", width[DST], height[DST], xpos, ypos); + + xswa.event_mask = ButtonPressMask|ButtonReleaseMask|ButtonMotionMask; + xswa.event_mask |= StructureNotifyMask; /* resize etc.. */ diff --git a/xzoom/xzoom.spec b/xzoom/xzoom.spec index 7f2c2f7..1337cb9 100644 --- a/xzoom/xzoom.spec +++ b/xzoom/xzoom.spec @@ -16,6 +16,7 @@ Source1: https://salsa.debian.org/debian/xzoom/-/raw/debian/master/debian ### Debian upstream patch Patch0: https://cdn-fastly.deb.debian.org/debian/pool/main/x/%{name}/%{name}_0.3-24.diff.gz Patch1: %{name}-0.3.shm.diff +Patch2: 001-geometry.patch BuildRequires: imake BuildRequires: desktop-file-utils BuildRequires: pkgconfig(xext) @@ -33,6 +34,7 @@ It can also mirror or rotate a part of the screen. %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 cp -p %{SOURCE1} . %build -- cgit