summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-09-01Fix 5 -Wuseless-cast warnings from gcc 14.1HEADmasterAlan Coopersmith1-3/+3
No need to cast things to the exact type they're already defined as being. Also fix up a bonus needless cast gcc didn't warn about (the argument to repaint_window can use the already-converted variable we've been using in the rest of the function). Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/app/xeyes/-/merge_requests/9>
2024-07-14Fix -Wcalloc-transposed-args warningsAlan Coopersmith1-2/+2
From gcc 14.1: Eyes.c: In function ‘EyesConfigure’: Eyes.c:132:45: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 132 | EyeConfiguration *c = calloc(sizeof(EyeConfiguration), 1); | ^~~~~~~~~~~~~~~~ Eyes.c:132:45: note: earlier argument should specify number of elements, later size of each element Eyes.c: In function ‘Initialize’: Eyes.c:409:36: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 409 | TPoint *pupils = calloc(sizeof(TPoint), config->count); | ^~~~~~ Eyes.c:409:36: note: earlier argument should specify number of elements, later size of each element Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/app/xeyes/-/merge_requests/8>
2023-07-13xeyes 1.3.0xeyes-1.3.0Alan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-05-28Implement multi-ocular support, add biblical exampleSerge Bazanski5-41/+143
This removes the assumption that an xeyes instance displays just a pair of eyes, and instead allows future developers to implement different kinds of ocular layouts. Currently, the ocular layout system only allows for specifying offsets, but a future change might also make different parts of the eye geometry configurable: size of different elements, padding, etc. Signed-off-by: Serge Bazanski <q3k@q3k.org>
2023-02-10Print which argument was unknown before giving usage messageAlan Coopersmith1-1/+10
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-10Add -help & -version optionsAlan Coopersmith2-13/+35
Processed before the display is opened so they work even if a connection to the display can't be opened. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-10gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-04-02man page: remove out-of-date reference to X(7)Alan Coopersmith1-2/+0
The X(7) man page doesn't list any license information as this had claimed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-09Fix spelling/wording issuesAlan Coopersmith2-2/+2
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-06Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-06gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-08-01xeyes 1.2.0xeyes-1.2.0Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-08-01Remove redundant declaration of hypot() for SVR4 systemsAlan Coopersmith1-4/+0
Fixes gcc warning: Eyes.c:54:15: warning: redundant redeclaration of ‘hypot’ [-Wredundant-decls] extern double hypot(double, double); ^~~~~ since it's already declared in <math.h> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-03-29Clean up compiler warningsKeith Packard2-30/+28
Add (char *) casts to initializers in Xt structs. Remove unused variables. Signed-off-by: Keith Packard <keithp@keithp.com>
2020-03-29Use XI2 raw events to notice when mouse moves [v2]Keith Packard3-7/+109
v2: We only need Xi version 2.0, not 2.2 Suggested-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Keith Packard <keithp@keithp.com>
2020-03-29Add support for the 'Present' extension. [v3]Keith Packard6-6/+197
This makes updating the eyes nicely vblank synchronized. v2: Ensure extensions exist before calling query_version These calls add calls to xcb_get_extension_data before calling query_version calls, as those calls will mark the connection with an error if made against an X server without the extension present. Suggested-by: Uli Schlachter <psychon@znc.in> v3: check the 'present' field in the return from xcb_get_extension_data; the xcb_get_extension_data call will always succeed (save for out of memory), the only way to tell if the extension is supported in the target X server is to test the 'present' field in the query extension reply value. Signed-off-by: Keith Packard <keithp@keithp.com>
2018-11-21Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-16Update README for gitlab migrationAlan Coopersmith3-26/+19
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-03-09xeyes 1.1.2xeyes-1.1.2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov1-4/+4
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2014-06-02autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith1-2/+3
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-02configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-04-25Mark usage as noreturn, as suggested by -Wmissing-noreturnAlan Coopersmith2-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-01-19config: move man pages into their own directoryGaetan Nadon4-17/+17
Use services provided by XORG_MANPAGE_SECTIONS. Use standard Makefile for man pages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: replace deprecated AC_HELP_STRING with AS_HELP_STRINGGaetan Nadon1-1/+1
This silences an Automake warning. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-11-24xeyes 1.1.1xeyes-1.1.1Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-20Make usage message fit into 80-column linesAlan Coopersmith1-10/+7
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-20Remove trailing whitespaceAlan Coopersmith3-14/+14
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-08config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSAlan Coopersmith1-3/+7
Regroup AC statements under the Autoconf initialization section. Regroup AM sttaements under the Automake initialization section. Add missing AC_CONFIG_SRCDIR Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-08config: Remove unnecessary calls from configure.acAlan Coopersmith2-10/+2
AC_PROG_CC & AC_PROG_INSTALL are provided by XORG_DEFAULT_OPTIONS now PKG_CONFIG_MODULES handles AC_SUBST of the CFLAGS & LIBS variables Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-08config: upgrade to util-macros 1.8 for additional man page supportAlan Coopersmith2-22/+4
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS The value of MAN_SUBST is the same for all X.Org packages. Use AC_PROG_SED now supplied by XORG_DEFAULT_OPTIONS Enables use of platform appropriate version of sed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-08config: update AC_PREREQ statement to 2.60Gaetan Nadon1-1/+1
Unrelated to the previous patches, the new value simply reflects the reality that the minimum level for autoconf to configure all x.org modules is 2.60 dated June 2006. ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-06Purge cvs tags.Jesse Adkins7-16/+0
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com>
2010-08-06Fill in COPYING file with copyright notices from source codeAlan Coopersmith1-8/+21
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-02-11config: move CWARNFLAGS from configure.ac to Makefile.amGaetan Nadon2-2/+1
Compiler warning flags should be explicitly set in the makefile rather than being merged with other packages compiler flags. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2009-12-18xeyes 1.1.0xeyes-1.1.0James Cloos1-1/+1
Signed-off-by: James Cloos <cloos@jhcloos.com>
2009-11-26Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILESGaetan Nadon1-0/+1
Now that the INSTALL file is generated. Allows running make maintainer-clean.
2009-10-28INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206Gaetan Nadon4-2/+5
Add missing INSTALL file. Use standard GNU file on building tarball README may have been updated Remove AUTHORS file as it is empty and no content available yet. Remove NEWS file as it is empty and no content available yet.
2009-10-27Deploy the new XORG_DEFAULT_OPTIONS #24242Gaetan Nadon1-2/+3
This macro aggregate a number of existing macros that sets commmon X.Org components configuration options. It shields the configuration file from future changes.
2009-10-26Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432Gaetan Nadon1-2/+0
ChangeLog filename is known to Automake and requires no further coding in the makefile.
2009-10-22.gitignore: use common defaults with custom section # 24239Gaetan Nadon1-11/+66
Using common defaults will reduce errors and maintenance. Only the very small or inexistent custom section need periodic maintenance when the structure of the component changes. Do not edit defaults.
2009-10-21This is not a GNU project, so declare it foreign.Jeremy Huddleston1-1/+1
On Wed, 2009-10-21 at 13:36 +1000, Peter Hutterer wrote: > On Tue, Oct 20, 2009 at 08:23:55PM -0700, Jeremy Huddleston wrote: > > I noticed an INSTALL file in xlsclients and libXvMC today, and it > > was quite annoying to work around since 'autoreconf -fvi' replaces > > it and git wants to commit it. Should these files even be in git? > > Can I nuke them for the betterment of humanity and since they get > > created by autoreconf anyways? > > See https://bugs.freedesktop.org/show_bug.cgi?id=24206 As an interim measure, replace AM_INIT_AUTOMAKE([dist-bzip2]) with AM_INIT_AUTOMAKE([foreign dist-bzip2]). This will prevent the generation of the INSTALL file. It is also part of the 24206 solution. Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2009-10-05Bump version for second beta release.xeyes-1.0.991James Cloos1-1/+1
1.0.991 as first beta of 1.1.0. (The first beta was meant to be 1.0.90 rather than 1.0.99. Having gotten that wrong, switch to three-digit release numbers for subsequent betas.)
2009-10-05New -distance mapping optionDylan Simon5-7/+69
Distance mapping makes more efficient use of eye space. Signed-off-by: Dylan Simon <dylan@dylex.net> Signed-off-by: James Cloos <cloos@jhcloos.com>
2009-10-05Cleanup and simplify calculation and drawingDylan Simon1-73/+65
By transforming the eyes’s space when calculating where to place the pupils, the code effectively assumed that EYE_HEIGHT == EYE_WIDTH. Make this assumption explicit and remove calculations which are therefore unnecessary. Clean up related code and, consequently, reduced redraw time and tearing. Signed-off-by: Dylan Simon <dylan@dylex.net> Signed-off-by: James Cloos <cloos@jhcloos.com>
2009-10-05Fix excessive redraw bugDylan Simon1-8/+15
introduced by dbb8401026c421d64a2962e6ac6eb900f6dc141e Signed-off-by: Dylan Simon <dylan@dylex.net> Signed-off-by: James Cloos <cloos@jhcloos.com>
2009-10-03Bump version for beta release.xeyes-1.0.99James Cloos1-1/+1
1.0.99 as first beta of 1.1.0. Signed-off-by: James Cloos <cloos@jhcloos.com>
2009-10-03Migrate to xorg macros 1.3 & XORG_DEFAULT_OPTIONSJames Cloos2-9/+5
Signed-off-by: James Cloos <cloos@jhcloos.com>