summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
7 daysuse XNFcallocarray() instead of xnfcalloc macroHEADmasterEnrico Weigelt, metux IT consult1-2/+2
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-01-08Quiet 3 -Wdeclaration-after-statement warningsAlan Coopersmith2-5/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-08Add X.Org's standard C warning flags to AM_CFLAGSAlan Coopersmith1-1/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-08configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOLAlan Coopersmith1-3/+2
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>
2023-10-05gitlab CI: ensure libtool is installed in build containerAlan Coopersmith1-3/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-09gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-22gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-22Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-12-14Update for removal of virtualFrom from ScrnInfoRecJon Turney1-2/+1
Removed in xserver commit 76ef102b.
2018-11-25Update configure.ac bug URL for gitlab migrationAlan 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>
2017-01-26autogen.sh: Implement GNOME Build APIColin Walters1-1/+3
http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-01-26configure: Drop AM_MAINTAINER_MODEPeter Hutterer2-2/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2016-07-19Handle ABI version 23Keith Packard1-5/+12
Block and wakeup handlers have changed function signature. Signed-off-by: Keith Packard <keithp@keithp.com>
2016-07-19Fix const and deprecated func warningsKeith Packard3-9/+11
A few const char warnings, plus XNFcalloc is now deprecated Signed-off-by: Keith Packard <keithp@keithp.com>
2013-12-17xlibclient.c: Fix build failure due to including server headers without ↵Jeremy Huddleston Sequoia1-0/+1
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-10-19Replace sprintf call with snprintfAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-12-21Remove miInitializeBackingStore()Jon TURNEY1-1/+0
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-06-15Fix return check of XShmQueryExtensionDaniel Martin1-1/+1
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: 26f6ab7cbc4d1d7fcd1de71697d42af97acdf932 Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Signed-off-by: Daniel Martin <daniel.martin@secunet.com>
2012-06-05nested: port to new compat API.Dave Airlie3-43/+150
This ports nested to the new server compat API. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-04-05Add XORG_LIBS to LIBADDYaakov Selkowitz1-1/+2
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-03-08Fix make distcheckJeremy Huddleston5-4/+4
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-08Silence a -Wincompatible-pointer-types because we know better.Jeremy Huddleston1-1/+1
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2012-03-08configure.ac: Replace with one based on the dummy driver for more consistencyJeremy Huddleston1-34/+49
This also fixes a typo of DRIVR_NAME that existed in the previous version. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-11-20Update for input API change: InputOption is an opaque type now.Jamey Sharp1-11/+39
I copied the backwards-compatibility functions from xf86-input-joystick. Signed-off-by: Jamey Sharp <jamey@minilop.net>
2011-10-16Set the keyboard mapping based on the remote server's mapJeremy Huddleston3-8/+125
This works for 32bit servers, but there are still issues with 64bit servers. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-16Properly include config.h in each of our source filesJeremy Huddleston3-0/+8
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-19Fix copy/paste error in log messages emitted during early (racey) input.Jamey Sharp1-3/+3
Signed-off-by: Jamey Sharp <jamey@minilop.net>
2011-09-19Drop input events until our device is initializedJeremy Huddleston1-0/+15
The use of TimerSet() to initialize input is racey, this avoids a crash if initialization looses the race. This is a good workaround for now, but we should look into a better way to initialize when we get a chance later. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-19Cleanup NestedClientCheckEvents to use switch rather than if-else-fooJeremy Huddleston1-26/+16
This makes the code more readable and makes the following patch cleaner. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-19If we fail to NewInputDeviceRequest, FatalError rather than crash later.Jeremy Huddleston1-1/+1
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-19Don't ignore errors in NestedInputControlJeremy Huddleston1-3/+13
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-19Finish stubbing out various functions that need a returned valueJeremy Huddleston1-0/+3
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-19Dead code removal: NestedShadowWindowJeremy Huddleston1-9/+0
driver.c:669:14: warning: unused function 'NestedShadowWindow' [-Wunused-function] static void *NestedShadowWindow(ScreenPtr pScreen, CARD32 row, CARD32 offset, ^ Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-19NestedCreateScreenResources needs to return a valueJeremy Huddleston1-2/+7
This Fixes error detection in NestedCreateScreenResources. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-15Avoid an erroneous free on shutdownJeremy Huddleston1-2/+0
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jamey Sharp <jamey@minilop.net>
2011-09-15Improve support for servers that do not support MIT-SHMJeremy Huddleston1-48/+62
If MIT-SHM fails, we should still try to initialize without it. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jamey Sharp <jamey@minilop.net>
2011-09-15Quit waking up every 20ms to get events from the backend server.Jamey Sharp4-41/+56
Instead, let the input core monitor the X socket, and also register a block handler to catch any events that were already read before the server's main-loop goes to sleep. Signed-off-by: Jamey Sharp <jamey@minilop.net> Tested-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-14Dead code removalJeremy Huddleston1-57/+0
Remove some #if 0 code. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jamey Sharp <jamey@minilop.net>
2011-09-14Remove some unused variablesJeremy Huddleston3-6/+0
driver.c:553:9: warning: unused variable 'rc' [-Wunused-variable] int rc; ^ input.c:188:18: warning: unused variable 'pInfo' [-Wunused-variable] InputInfoPtr pInfo = device->public.devicePrivate; ^ input.c:210:26: warning: unused variable 'pNestedInput' [-Wunused-variable] NestedInputDevicePtr pNestedInput = pInfo->private; ^ 2 warnings generated. xlibclient.c:272:11: warning: unused variable 'msg' [-Wunused-variable] char *msg = "Cursor"; ^ xlibclient.c:273:11: warning: unused variable 'msg2' [-Wunused-variable] char *msg2 = "Root"; ^ 2 warnings generated. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jamey Sharp <jamey@minilop.net>
2011-09-14Change the window title to be the Screen indexJeremy Huddleston1-2/+1
$DISPLAY was not particularly useful and resulted in a crash for long values of $DISPLAY. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jamey Sharp <jamey@minilop.net>
2011-09-14Nested X screens don't have a RAMDAC.Jamey Sharp1-2/+0
Signed-off-by: Jamey Sharp <jamey@minilop.net>
2011-09-14Don't scale the absolute axis valuators.Jamey Sharp1-1/+1
Peter Hutterer told me I needed to set the valuator ranges, but I don't want the input core to scale the coordinates. Setting the min and max to -1 apparently has the right effect. Signed-off-by: Jamey Sharp <jamey@minilop.net>
2011-09-14Fix #includes when xserver is in a non-standard prefix.Jamey Sharp5-21/+21
Jeremy Huddleston tried building this with xserver's --prefix set to /opt/Xorg and found that these #includes only worked so far by coincidence. Signed-off-by: Jamey Sharp <jamey@minilop.net> Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-14Update for input ABI 12.2.Jamey Sharp2-32/+10
Signed-off-by: Jamey Sharp <jamey@minilop.net>
2011-09-12Remove and ignore build products.Jamey Sharp42-84982/+78
Signed-off-by: Jamey Sharp <jamey@minilop.net>
2011-04-30initial upload of xorg/driver/xf86-video-nestedTim41-0/+84982
2011-02-27Updated authors.Colin Hill7-23/+59