summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2024-05-19drop ancient compat hacksEnrico Weigelt, metux IT consult
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-14Raise minimum supported Xserver version to 1.18 (ABI_XINPUT_VERSION 22.1)Alan Coopersmith
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-08use XNFcallocarray() instead of xnfcalloc macroEnrico Weigelt, metux IT consult
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 Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-08Add X.Org's standard C warning flags to AM_CFLAGSAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-12-14Update for removal of virtualFrom from ScrnInfoRecJon Turney
Removed in xserver commit 76ef102b.
2016-07-19Handle ABI version 23Keith Packard
Block and wakeup handlers have changed function signature. Signed-off-by: Keith Packard <keithp@keithp.com>
2016-07-19Fix const and deprecated func warningsKeith Packard
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 Sequoia
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 Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-12-21Remove miInitializeBackingStore()Jon TURNEY
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 Martin
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 Airlie
This ports nested to the new server compat API. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-04-05Add XORG_LIBS to LIBADDYaakov Selkowitz
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 Huddleston
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 Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-11-20Update for input API change: InputOption is an opaque type now.Jamey Sharp
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 Huddleston
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 Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-19Fix copy/paste error in log messages emitted during early (racey) input.Jamey Sharp
Signed-off-by: Jamey Sharp <jamey@minilop.net>
2011-09-19Drop input events until our device is initializedJeremy Huddleston
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 Huddleston
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 Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-19Don't ignore errors in NestedInputControlJeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-19Finish stubbing out various functions that need a returned valueJeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-19Dead code removal: NestedShadowWindowJeremy Huddleston
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 Huddleston
This Fixes error detection in NestedCreateScreenResources. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-09-15Avoid an erroneous free on shutdownJeremy Huddleston
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 Huddleston
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 Sharp
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 Huddleston
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 Huddleston
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 Huddleston
$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 Sharp
Signed-off-by: Jamey Sharp <jamey@minilop.net>
2011-09-14Don't scale the absolute axis valuators.Jamey Sharp
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 Sharp
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 Sharp
Signed-off-by: Jamey Sharp <jamey@minilop.net>
2011-09-12Remove and ignore build products.Jamey Sharp
Signed-off-by: Jamey Sharp <jamey@minilop.net>
2011-04-30initial upload of xorg/driver/xf86-video-nestedTim
2011-02-27Updated authors.Colin Hill
2011-02-23Got rid of unsightly void pointers.Colin Hill
2011-02-22Fixed compiler warnings.Colin Hill
2011-02-22Fixed a warning; added window title display of the DISPLAY env. variable ↵Weseung Hwang
that the nested server is running on (and the screen number). Unfortunately, at this point the behavior is incorrect, returning the DISPLAY of the host that invoked the nested instance. Not sure how to pass the info from within the nested server back out to the host client to get the correct information...
2011-02-16Added input.cColin Hill
2011-02-16Massive code clean up. Mouse motion/buttons and keyboard works.Colin Hill
2011-02-16Keyboard works.Colin Hill
2011-02-16Mouse button 1.Colin Hill
2011-02-16Clean up.Colin Hill
2011-02-16Mouse movement works.Colin Hill
2011-02-16Made device pointer shared between input and xlibclient.cColin Hill