summaryrefslogtreecommitdiff
path: root/xzoom
diff options
context:
space:
mode:
Diffstat (limited to 'xzoom')
-rw-r--r--xzoom/001-geometry.patch15
-rw-r--r--xzoom/xzoom.spec2
2 files changed, 17 insertions, 0 deletions
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
bgstack15