Commit Graph

130 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
b0ccc9d664 .github: add NetBSD build
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-29 12:42:32 +01:00
Enrico Weigelt, metux IT consult
cdd3ff1586 .github: add freebsd and dragonfly build
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-28 16:47:05 +01:00
Enrico Weigelt, metux IT consult
d0caebe3ad .github: use new common driver build actions
Using the new driver build actions in X11Libre/actions-build-driver repo,
instead of having lots of duplicated pipeline and script in all the
individual driver repos.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-23 22:02:25 +01:00
Enrico Weigelt, metux IT consult
e797910f92 configure.ac: increase minimum xserver version to 25.0.0
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-19 16:13:07 +01:00
Enrico Weigelt, metux IT consult
36a634aa74 release 25.0.0
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-nested-25.0.0
2025-12-18 19:15:00 +01:00
Enrico Weigelt, metux IT consult
49801212f4 configure.ac: tiny formatting cleanup
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 17:27:50 +01:00
Enrico Weigelt, metux IT consult
ad47ff0ee1 configure.ac: replace DRIVER_NAME symbol by actual name
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 13:15:05 +01:00
Enrico Weigelt, metux IT consult
8c43b459e7 drop obsolete .gitlab-ci.yml
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 11:54:22 +01:00
Enrico Weigelt, metux IT consult
29916b5879 drop obsolete #ifdef HAVE_CONFIG_H
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-17 20:22:59 +01:00
Enrico Weigelt, metux IT consult
7a1a7ced1d release 1.0.1
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-nested-1.0.1
2025-12-16 15:19:21 +01:00
Enrico Weigelt, metux IT consult
89da2f44cd configure.ac: fix package name and issue tracker URL
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-15 19:09:06 +01:00
Alan Coopersmith
48408e5591 Strip trailing whitespace from source files
Performed with: `git ls-files | xargs perl -i -p -e 's{[ \t]+$}{}'`

`git diff -w` & `git diff -b` show no diffs from this change

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nested/-/merge_requests/8>
2025-12-15 17:32:20 +01:00
Enrico Weigelt, metux IT consult
9b6ed3ebec compat-api.h: drop obsolete XF86_ENABLEDISABLEFB_ARG() macro
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-08 16:43:40 +01:00
b-aaz
b2b8a8f9fb configure: Automatically detect the default xorg-module-dir.
The module directory has changed to a per ABI folder in the xlibre-xserver.
Now the default value of `xorg-module-dir` will be detected from the `moduledir` variable in xorg-server.pc.

Signed-off-by: b-aaz <b-aazbsd.proton.me>
xlibre-xf86-video-nested-1.0.0.2
2025-07-29 18:46:25 +02:00
Enrico Weigelt, metux IT consult
f9ddf598d6 .github: add CI pipeline
This pipeline builds the driver against the latest Xserver stable
release as well as current master.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-28 20:30:07 +02:00
callmetango
d915ea396e .github: Add issue forms
Add the following forms for issue creation:

* Bug report
* Feature request
* Code change
* Documentation update
* Organizational task

* add issue type selection page on "New Issue" call
* mention Github Discussions and the mailing list where appropriate

Part-of: X11Libre/misc#156
Signed-off-by: callmetango <callmetango@users.noreply.github.com>
2025-07-07 17:06:18 +02:00
Alan Coopersmith
03dab66493 NestedClientCreateScreen: avoid leaks on failure paths
Found by Oracle Parfait 13.3 static analyzer:
   Memory leak [memory-leak]:
      Memory leak of pointer pPriv allocated with malloc(168)
        at line 182 of xlibclient.c in function 'NestedClientCreateScreen'.
          pPriv allocated at line 177 with malloc(168)

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nested/-/merge_requests/7>
xlibre-xf86-video-nested-1.0.0.1
2024-10-26 09:50:58 -07:00
Enrico Weigelt, metux IT consult
86b6dc3bb6 drop some dead code
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nested/-/merge_requests/5>
2024-05-19 17:58:21 +00:00
Enrico Weigelt, metux IT consult
a2b108a8bd drop ancient compat hacks
We rely on minium xserver version 1.18

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nested/-/merge_requests/5>
2024-05-19 17:58:21 +00:00
Alan Coopersmith
82331693c4 Raise minimum supported Xserver version to 1.18 (ABI_XINPUT_VERSION 22.1)
Already effectively required by use of XNFcallocarray() introduced in
xorg/xserver@b96dc999 - xserver-1.18.0, released in Nov. 2015.

Allows dropping remnants of code for XAA and pre-pciaccess X servers

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nested/-/merge_requests/6>
2024-05-14 17:44:42 -07:00
Enrico Weigelt, metux IT consult
525e7c3eb2 use XNFcallocarray() instead of xnfcalloc macro
xnfcalloc is just an alias for XNFcallocarray() that doesn't seem to serve
any practical purpose, so it can go away once all drivers stopped using it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nested/-/merge_requests/4>
2024-05-08 16:17:48 +02:00
Alan Coopersmith
ebf3e47c68 Quiet 3 -Wdeclaration-after-statement warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-08 13:54:12 -08:00
Alan Coopersmith
c13fd78b53 Add X.Org's standard C warning flags to AM_CFLAGS
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-08 13:50:46 -08:00
Alan Coopersmith
9734a4dff0 configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOL
AC_PROG_LIBTOOL was replaced by LT_INIT in libtool 2 in 2008,
so it's time to rely on it.

Clears autoconf warnings:

configure.ac:44: warning: The macro 'AC_PROG_LIBTOOL' is obsolete.
configure.ac:44: You should run autoupdate.
aclocal.m4:3465: AC_PROG_LIBTOOL is expanded from...
configure.ac:44: the top level

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-08 13:48:44 -08:00
Alan Coopersmith
e083ac3836 gitlab CI: ensure libtool is installed in build container
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-10-05 17:05:49 -07:00
Alan Coopersmith
86e80a0fbe gitlab CI: stop requiring Signed-off-by in commits
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-09 12:06:58 -08:00
Alan Coopersmith
d650b927e9 gitlab CI: add a basic build test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-22 13:23:34 -08:00
Alan Coopersmith
891fa47acf Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-22 13:15:55 -08:00
Jon Turney
6a48b385c4 Update for removal of virtualFrom from ScrnInfoRec
Removed in xserver commit 76ef102b.
2018-12-14 17:30:04 +00:00
Alan Coopersmith
32a6e112e0 Update configure.ac bug URL for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-25 14:33:47 -08:00
Mihail Konev
209a4af9a4 autogen: add default patch prefix
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26 14:00:22 +10:00
Emil Velikov
f3182662d8 autogen.sh: use quoted string variables
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-26 11:30:53 +10:00
Peter Hutterer
3e5eb34a74 autogen.sh: use exec instead of waiting for configure to finish
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>
2017-01-26 11:30:29 +10:00
Colin Walters
d6924fb456 autogen.sh: Implement GNOME Build API
http://people.gnome.org/~walters/docs/build-api.txt

Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-01-26 11:30:18 +10:00
Peter Hutterer
a62958e783 configure: Drop AM_MAINTAINER_MODE
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26 11:20:36 +10:00
Keith Packard
1d02fa6da7 Handle ABI version 23
Block and wakeup handlers have changed function signature.

Signed-off-by: Keith Packard <keithp@keithp.com>
2016-07-19 09:06:04 -07:00
Keith Packard
4512072ccd Fix const and deprecated func warnings
A few const char warnings, plus XNFcalloc is now deprecated

Signed-off-by: Keith Packard <keithp@keithp.com>
2016-07-19 09:04:03 -07:00
Jeremy Huddleston Sequoia
44ba273ca0 xlibclient.c: Fix build failure due to including server headers without first including xorg-server.h
eg:

.../include/xorg/os.h:572:1: error: expected parameter declarator [Parse Issue]
strlcpy(char *dst, const char *src, size_t siz);
^
/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
Found-by: Tinderbox
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
2013-12-17 15:31:33 -08:00
Alan Coopersmith
72355a2b55 Replace sprintf call with snprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-10-19 21:57:49 -07:00
Jon TURNEY
b969683854 Remove miInitializeBackingStore()
This doesn't exist any more, and apparently hasn't done anything since xserver 1.4

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
2012-12-21 12:01:19 +00:00
Daniel Martin
ad48dc6eb9 Fix return check of XShmQueryExtension
XShmQueryExtension returns true if it is supported. Due to a missing "!"
within the if clause the assumption was that there is no MIT-SHM even if
it was.

Regression-from: 26f6ab7cbc

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Daniel Martin <daniel.martin@secunet.com>
2012-06-15 00:31:42 -07:00
Dave Airlie
a438098e6f nested: port to new compat API.
This ports nested to the new server compat API.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-05 11:46:57 +01:00
Yaakov Selkowitz
85f10de940 Add XORG_LIBS to LIBADD
This affects only Cygwin, where drivers must be linked against the
Xorg implib.  On other systems, XORG_LIBS will be empty.

Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-04-05 21:54:06 -05:00
Jeremy Huddleston
ea72bf8742 Fix make distcheck
Rename input to nested_input to avoid conflict with xorg/input.h and
actually include it in the dist tarball.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-03-08 01:33:36 -08:00
Jeremy Huddleston
83e1aec8cf Silence a -Wincompatible-pointer-types because we know better.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-03-08 01:19:53 -08:00
Jeremy Huddleston
e123277d10 configure.ac: Replace with one based on the dummy driver for more consistency
This also fixes a typo of DRIVR_NAME that existed in the previous version.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-03-08 01:18:50 -08:00
Jamey Sharp
7b93f056dc Update for input API change: InputOption is an opaque type now.
I copied the backwards-compatibility functions from xf86-input-joystick.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
2011-11-20 03:49:13 -08:00
Jeremy Huddleston
eed1f2a15b Set the keyboard mapping based on the remote server's map
This works for 32bit servers, but there are still issues with 64bit servers.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-16 06:16:04 -07:00
Jeremy Huddleston
0bebed0452 Properly include config.h in each of our source files
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-16 06:05:02 -07:00
Jamey Sharp
ee0f8d95c1 Fix copy/paste error in log messages emitted during early (racey) input.
Signed-off-by: Jamey Sharp <jamey@minilop.net>
2011-09-19 20:34:49 -07:00