diff options
author | B Stack <bgstack15@gmail.com> | 2021-02-17 09:04:11 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2021-02-17 09:04:11 -0500 |
commit | b5b4decd38a4792bde50873d3eef885e5db7b0f9 (patch) | |
tree | 84761f554cb412614b5da9c23848deba9ffa5d6a /xzoom | |
parent | add xzoom (diff) | |
download | stackrpms-b5b4decd38a4792bde50873d3eef885e5db7b0f9.tar.gz stackrpms-b5b4decd38a4792bde50873d3eef885e5db7b0f9.tar.bz2 stackrpms-b5b4decd38a4792bde50873d3eef885e5db7b0f9.zip |
add -source geometry fix
Diffstat (limited to 'xzoom')
-rw-r--r-- | xzoom/001-geometry.patch | 15 | ||||
-rw-r--r-- | xzoom/xzoom.spec | 2 |
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 |