commit xbanish for openSUSE:Factory
Hello community, here is the log from the commit of package xbanish for openSUSE:Factory checked in at 2020-08-18 12:01:49 Comparing /work/SRC/openSUSE:Factory/xbanish (Old) and /work/SRC/openSUSE:Factory/.xbanish.new.3399 (New) Package is "xbanish" Tue Aug 18 12:01:49 2020 rev:5 rq:827497 version:1.7 Changes: --- /work/SRC/openSUSE:Factory/xbanish/xbanish.changes 2018-11-13 17:53:45.031329957 +0100 +++ /work/SRC/openSUSE:Factory/.xbanish.new.3399/xbanish.changes 2020-08-18 12:03:14.315425072 +0200 @@ -1,0 +2,7 @@ +Mon Aug 17 15:33:56 UTC 2020 - Dirk Mueller + +- update to 1.7: + * build system fixes + * various new options added + +--- Old: xbanish-1.6.tar.gz New: xbanish-1.7.tar.gz Other differences: -- ++ xbanish.spec ++ --- /var/tmp/diff_new_pack.kUoxAC/_old 2020-08-18 12:03:15.827425278 +0200 +++ /var/tmp/diff_new_pack.kUoxAC/_new 2020-08-18 12:03:15.831425279 +0200 @@ -1,7 +1,7 @@ # # spec file for package xbanish # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: xbanish -Version:1.6 +Version:1.7 Release:0 Summary:Program to hide the mouse cursor when typing License:BSD-3-Clause ++ xbanish-1.6.tar.gz -> xbanish-1.7.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xbanish-1.6/Makefile new/xbanish-1.7/Makefile --- old/xbanish-1.6/Makefile2018-08-31 17:34:12.0 +0200 +++ new/xbanish-1.7/Makefile2020-05-09 04:56:59.0 +0200 @@ -1,9 +1,8 @@ # vim:ts=8 -VERS := 1.6 - CC ?= cc -CFLAGS ?= -O2 -Wall -Wunused -Wmissing-prototypes -Wstrict-prototypes +CFLAGS ?= -O2 +CFLAGS += -Wall -Wunused -Wmissing-prototypes -Wstrict-prototypes -Wunused PREFIX ?= /usr/local BINDIR ?= $(PREFIX)/bin @@ -37,11 +36,4 @@ clean: rm -f $(PROG) $(OBJS) -release: all - @mkdir $(PROG)-${VERS} - @cp Makefile *.c $(PROG)-$(VERS)/ - @tar -czf ../$(PROG)-$(VERS).tar.gz $(PROG)-$(VERS) - @rm -rf $(PROG)-$(VERS)/ - @echo "made release ${VERS}" - .PHONY: all install clean diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xbanish-1.6/xbanish.1 new/xbanish-1.7/xbanish.1 --- old/xbanish-1.6/xbanish.1 2018-08-31 17:34:12.0 +0200 +++ new/xbanish-1.7/xbanish.1 2020-05-09 04:56:59.0 +0200 @@ -1,4 +1,4 @@ -.Dd $Mdocdate: June 10 2015$ +.Dd $Mdocdate: September 16 2019$ .Dt XBANISH 1 .Os .Sh NAME @@ -6,8 +6,10 @@ .Nd hide the X11 mouse cursor when a key is pressed .Sh SYNOPSIS .Nm +.Op Fl a .Op Fl d .Op Fl i Ar modifier +.Op Fl m Ar nw|ne|sw|se .Sh DESCRIPTION .Nm hides the X11 mouse cursor when a key is pressed. @@ -19,6 +21,10 @@ but the effect is global in the X11 session. .Sh OPTIONS .Bl -tag -width Ds +.It Fl a +Always keep mouse cursor hidden while +.Nm +is running. .It Fl d Print debugging messages to stdout. .It Fl i Ar modifier @@ -40,6 +46,9 @@ (Super, Windows, or Command), and .Ic mod5 (ISO Level 3 Shift). +.It Fl m Ar nw|ne|sw|se +When hiding the mouse cursor, move it to this corner of the screen, +then move it back when showing the cursor. .El .Sh SEE ALSO .Xr XFixes 3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xbanish-1.6/xbanish.c new/xbanish-1.7/xbanish.c --- old/xbanish-1.6/xbanish.c 2018-08-31 17:34:12.0 +0200 +++ new/xbanish-1.7/xbanish.c 2020-05-09 04:56:59.0 +0200 @@ -41,9 +41,10 @@ void hide_cursor(void); void show_cursor(void); +void snoop_root(void); int snoop_xinput(Window); void snoop_legacy(Window); -void usage(void); +void usage(char *); int swallow_error(Display *, XErrorEvent *); /* xinput event type ids to be filled in later */ @@ -52,13 +53,24 @@ static int key_press_type = -1; static int key_release_type = -1; static int motion_type = -1; - -extern char *__progname; +static int device_change_type = -1; +static long last_device_change = -1; static Display *dpy; -static int debug = 0, hiding = 0, legacy = 0; +static int hiding = 0, legacy = 0, always_hide = 0; static unsigned char ignored; +static int debug = 0; +#define DPRINTF(x) { if (debug) { printf x; } }; + +static int move = 0, move_x, move_y; +enum move_types { + MOVE_NW = 1, + MOVE_NE, + MOVE_SW, + MOVE_SE, +}; + int main(int argc, char *argv[]) { @@ -76,8 +88,11 @@ {"mod4", Mo
commit xbanish for openSUSE:Factory
Hello community, here is the log from the commit of package xbanish for openSUSE:Factory checked in at 2018-11-13 16:57:16 Comparing /work/SRC/openSUSE:Factory/xbanish (Old) and /work/SRC/openSUSE:Factory/.xbanish.new (New) Package is "xbanish" Tue Nov 13 16:57:16 2018 rev:4 rq:648244 version:1.6 Changes: --- /work/SRC/openSUSE:Factory/xbanish/xbanish.changes 2018-11-08 09:48:59.289064626 +0100 +++ /work/SRC/openSUSE:Factory/.xbanish.new/xbanish.changes 2018-11-13 17:53:45.031329957 +0100 @@ -1,0 +2,5 @@ +Wed Nov 7 17:50:04 UTC 2018 - Jan Engelhardt + +- Use noun phrase. Use %make_install again. + +--- Other differences: -- ++ xbanish.spec ++ --- /var/tmp/diff_new_pack.RbsL8L/_old 2018-11-13 17:53:46.635328288 +0100 +++ /var/tmp/diff_new_pack.RbsL8L/_new 2018-11-13 17:53:46.671328250 +0100 @@ -19,7 +19,7 @@ Name: xbanish Version:1.6 Release:0 -Summary:Banish the mouse cursor when typing, show it again when the mouse moves +Summary:Program to hide the mouse cursor when typing License:BSD-3-Clause Group: System/X11/Utilities URL:https://github.com/jcs/xbanish @@ -50,9 +50,7 @@ make %{?_smp_mflags} %install -# the makefile is utterly broken -install -m 755 -s -D xbanish %{buildroot}%{_bindir}/xbanish -install -m 644 -D xbanish.1 %{buildroot}%{_mandir}/man1/xbanish.1 +%make_install PREFIX="%{_prefix}" MANDIR="%{_mandir}/man1" %files %doc README.md
commit xbanish for openSUSE:Factory
Hello community, here is the log from the commit of package xbanish for openSUSE:Factory checked in at 2018-11-08 09:48:54 Comparing /work/SRC/openSUSE:Factory/xbanish (Old) and /work/SRC/openSUSE:Factory/.xbanish.new (New) Package is "xbanish" Thu Nov 8 09:48:54 2018 rev:3 rq:646638 version:1.6 Changes: --- /work/SRC/openSUSE:Factory/xbanish/xbanish.changes 2017-11-30 12:44:58.442829088 +0100 +++ /work/SRC/openSUSE:Factory/.xbanish.new/xbanish.changes 2018-11-08 09:48:59.289064626 +0100 @@ -1,0 +2,6 @@ +Thu Oct 25 13:27:37 UTC 2018 - Luigi Baldoni + +- Update to stable version 1.6 (no changelog supplied) +- Spec cleanup + +--- Old: _service xbanish-0.0+git20140806.5c0aed7.tar.xz New: xbanish-1.6.tar.gz Other differences: -- ++ xbanish.spec ++ --- /var/tmp/diff_new_pack.DYYeZ7/_old 2018-11-08 09:48:59.993063796 +0100 +++ /var/tmp/diff_new_pack.DYYeZ7/_new 2018-11-08 09:48:59.993063796 +0100 @@ -1,7 +1,7 @@ # # spec file for package xbanish # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,23 +12,23 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: xbanish -Version:0.0+git20140806.5c0aed7 +Version:1.6 Release:0 Summary:Banish the mouse cursor when typing, show it again when the mouse moves License:BSD-3-Clause Group: System/X11/Utilities -Url:http://github.com/jcs/xbanish -Source: xbanish-0.0+git20140806.5c0aed7.tar.xz +URL:https://github.com/jcs/xbanish +Source: https://github.com/jcs/xbanish/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: pkgconfig BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xfixes) BuildRequires: pkgconfig(xi) BuildRequires: pkgconfig(xt) -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description xbanish hides the mouse cursor when you start typing, and shows it again when @@ -46,7 +46,7 @@ %setup -q %build -export CFLAGS="%optflags" +export CFLAGS="%{optflags}" make %{?_smp_mflags} %install @@ -55,9 +55,8 @@ install -m 644 -D xbanish.1 %{buildroot}%{_mandir}/man1/xbanish.1 %files -%defattr(-,root,root) -%doc README +%doc README.md %{_bindir}/%{name} -%{_mandir}/man1/%{name}.1.* +%{_mandir}/man1/%{name}.1%{?ext_man} %changelog
commit xbanish for openSUSE:Factory
Hello community, here is the log from the commit of package xbanish for openSUSE:Factory checked in at 2017-11-30 12:44:57 Comparing /work/SRC/openSUSE:Factory/xbanish (Old) and /work/SRC/openSUSE:Factory/.xbanish.new (New) Package is "xbanish" Thu Nov 30 12:44:57 2017 rev:2 rq:546253 version:0.0+git20140806.5c0aed7 Changes: --- /work/SRC/openSUSE:Factory/xbanish/xbanish.changes 2015-06-02 10:03:32.0 +0200 +++ /work/SRC/openSUSE:Factory/.xbanish.new/xbanish.changes 2017-11-30 12:44:58.442829088 +0100 @@ -1,0 +2,6 @@ +Tue Nov 28 14:33:08 UTC 2017 - crrodrig...@opensuse.org + +- Respect %optflags +- Remove buildrequires on xorg-x11-devel metapackage. + +--- Other differences: -- ++ xbanish.spec ++ --- /var/tmp/diff_new_pack.ZEBDH0/_old 2017-11-30 12:44:58.978809603 +0100 +++ /var/tmp/diff_new_pack.ZEBDH0/_new 2017-11-30 12:44:58.982809458 +0100 @@ -1,7 +1,7 @@ # # spec file for package xbanish # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,8 +24,10 @@ Group: System/X11/Utilities Url:http://github.com/jcs/xbanish Source: xbanish-0.0+git20140806.5c0aed7.tar.xz -BuildRequires: xorg-x11 -BuildRequires: xorg-x11-devel +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xfixes) +BuildRequires: pkgconfig(xi) +BuildRequires: pkgconfig(xt) BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -44,6 +46,7 @@ %setup -q %build +export CFLAGS="%optflags" make %{?_smp_mflags} %install