- 30 Jul, 2021 1 commit
-
-
It is copied using memcpy() and not modified so we can add const. This fixes a -Wincompatible-pointer-types-discards-qualifiers compiler warning that was failing a -Werror XVnc build for me. Signed-off-by:
Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
-
- 23 Feb, 2017 2 commits
-
-
Adam Jackson authored
This will be used by in-server features that need to react to property changes. The first one will be _XWAYLAND_ALLOW_COMMITS. Signed-off-by:
Adam Jackson <ajax@redhat.com> [Pekka: add commit message body] Signed-off-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
Adam Jackson authored
Instead of just the atom. No functional change. Signed-off-by:
Adam Jackson <ajax@redhat.com> Signed-off-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
- 15 Aug, 2016 1 commit
-
-
Keith Packard authored
Make sure the whole event is initialized, instead of leaving the pad bytes unset. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Hans de Goede <hdegoede@redhat.com>
-
- 04 May, 2016 1 commit
-
-
Adam Jackson authored
This was added in: commit 312910b4 Author: Chase Douglas <chase.douglas@canonical.com> Date: Wed Apr 18 11:15:40 2012 -0700 Update currentTime in dispatch loop Unfortunately this is equivalent to calling GetTimeInMillis() once per request. In the absolute best case (as on Linux) you're only hitting the vDSO; on other platforms that's a syscall. Either way it puts a pretty hard ceiling on request throughput. Instead, push the call down to the requests that need it; basically, grab processing and event generation. Cc: Chase Douglas <chase.douglas@canonical.com> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
- 30 Nov, 2015 1 commit
-
-
Adam Jackson authored
Use dixChangeWindowProperty(serverClient, ...) instead. Signed-off-by:
Adam Jackson <ajax@redhat.com> Reviewed-by:
Keith Packard <keithp@keithp.com>
-
- 21 Apr, 2015 1 commit
-
-
Alan Coopersmith authored
v2: remove now useless parentheses Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
- 12 Nov, 2014 1 commit
-
-
Peter Hutterer authored
sed -i "s/[ ]\+$//g" **/*.(c|h) happy reviewing... git diff -w is an empty diff. Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- 12 Jan, 2014 1 commit
-
-
Keith Packard authored
This lets us stop using the 'pointer' typedef in Xdefs.h as 'pointer' is used throughout the X server for other things, and having duplicate names generates compiler warnings. Signed-off-by:
Keith Packard <keithp@keithp.com> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
- 10 Jul, 2012 3 commits
-
-
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Keith Packard <keithp@keithp.com> Tested-by:
Daniel Stone <daniel@fooishbar.org>
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Keith Packard <keithp@keithp.com> Tested-by:
Daniel Stone <daniel@fooishbar.org>
-
Alan Coopersmith authored
Don't need to pass an empty reply to NullPropertyReply, let it make it's own. Move reply initialization code in remaining replies in ProcGetProperty to group with the rest of the fields. (Prepares for coming C99 designated initializer conversion.) Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Keith Packard <keithp@keithp.com> Tested-by:
Daniel Stone <daniel@fooishbar.org>
-
- 21 Mar, 2012 1 commit
-
-
Keith Packard authored
This is strictly the application of the script 'x-indent-all.sh' from util/modular. Compared to the patch that Daniel posted in January, I've added a few indent flags: -bap -psl -T PrivatePtr -T pmWait -T _XFUNCPROTOBEGIN -T _XFUNCPROTOEND -T _X_EXPORT The typedefs were needed to make the output of sdksyms.sh match the previous output, otherwise, the code is formatted badly enough that sdksyms.sh generates incorrect output. The generated code was compared with the previous version and found to be essentially identical -- "assert" line numbers and BUILD_TIME were the only differences found. The comparison was done with this script: dir1=$1 dir2=$2 for dir in $dir1 $dir2; do (cd $dir && find . -name '*.o' | while read file; do dir=`dirname $file` base=`basename $file .o` dump=$dir/$base.dump objdump -d $file > $dump done) done find $dir1 -name '*.dump' | while read dump; do otherdump=`echo $dump | sed "s;$dir1;$dir2;"` diff -u $dump $otherdump done Signed-off-by:
Keith Packard <keithp@keithp.com> Acked-by:
Daniel Stone <daniel@fooishbar.org> Acked-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- 09 Jan, 2012 1 commit
-
-
This reverts commit f04fe06a . dixLookupWindow no longer returns BadMatch. No other caller was checking for it, so this problem is now fixed in the utility function. Signed-off-by:
Christopher James Halse Rogers <christopher.halse.rogers@canonical.com> Reviewed-by:
Adam Jackson <ajax@redhat.com> Signed-off-by:
Keith Packard <keithp@keithp.com>
-
- 31 Dec, 2010 1 commit
-
-
Daniel Stone authored
This enables us to reliably inspect properties when destroying windows. Signed-off-by:
Daniel Stone <daniel@fooishbar.org> Reviewed-by:
Fernando Carrijo <fcarrijo@freedesktop.org>
-
- 10 Sep, 2010 1 commit
-
-
Selection objects were not being allocated with privates, and both objects had a stray statement that zeroed out the devPrivates field. Signed-off-by:
Eamon Walsh <ewalsh@tycho.nsa.gov> Reported-by:
Justin Mattock <justinmattock@gmail.com> Reviewed-by:
Adam Jackson <ajax@redhat.com> Signed-off-by:
Keith Packard <keithp@keithp.com>
-
- 10 Jun, 2010 1 commit
-
-
This patch was generated by the following Perl code: perl -i -pe 's/([^_])return\s*\(\s*([^(]+?)\s*\)s*;(\s+(\n))?/$1return $2;$4/g;' Signed-off-by:
Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by:
Jamey Sharp <jamey@minilop.net> Reviewed-by:
Daniel Stone <daniel@fooishbar.org> Signed-off-by:
Keith Packard <keithp@keithp.com>
-
- 06 Jun, 2010 1 commit
-
-
Keith Packard authored
This patch only changes the API, not the implementation of the devPrivates infrastructure. This will permit a new devPrivates implementation to be layed into the server without requiring simultaneous changes in every devPrivates user. Signed-off-by:
Keith Packard <keithp@keithp.com> Tested-by:
Tiago Vignatti <tiago.vignatti@nokia.com>
-
- 14 May, 2010 1 commit
-
-
Jamey Sharp authored
Just let Dispatch() check for a noClientException, rather than making every single dispatch procedure take care of it. Signed-off-by:
Jamey Sharp <jamey@minilop.net> Reviewed-by:
Daniel Stone <daniel@fooishbar.org>
-
- 12 May, 2010 1 commit
-
-
Mikhail Gusarov authored
The only remaining X-functions used in server are XNF*, the rest is converted to plain alloc/calloc/realloc/free/strdup. X* functions are still exported from server and x* macros are still defined in header file, so both ABI and API are not affected by this change. Signed-off-by:
Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- 03 Sep, 2009 1 commit
-
-
Peter Hutterer authored
dixLookupWindow may return BadMatch if the window in question isn't actually a window. In this case, GetProperty needs to return BadWindow - not BadMatch. X.Org Bug 23562 <http://bugs.freedesktop.org/show_bug.cgi?id=23562 > Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- 22 Jul, 2009 1 commit
-
-
There will be no new space allocated, if mode != PropModeReplace and len == 0, or if mode is not one of the handled modes. This fixes freeing data that is still in use, leading to double frees and other memory corruption. Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- 14 Jul, 2009 1 commit
-
-
Peter Hutterer authored
Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- 30 Jun, 2009 1 commit
-
-
Eamon Walsh authored
Signed-off-by:
Eamon Walsh <ewalsh@tycho.nsa.gov>
-
- 26 Jun, 2009 1 commit
-
-
Eamon Walsh authored
Allows security modules to enforce what property contents can be set by clients. Uses the new DixPostAccess bit to distinguish between the existing call made during the lookup (with the old property data) and this new call. Note that this only applies to writes, prepends, or appends to existing properties; for new properties the existing DixCreateAccess hook call may be used since it includes the new data. Refer to the XACE-Spec document in xorg-docs, section "Property Access." Signed-off-by:
Eamon Walsh <ewalsh@tycho.nsa.gov>
-
- 16 Feb, 2009 1 commit
-
-
Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- 22 Jan, 2009 1 commit
-
-
Adam Jackson authored
We've had void * for twenty years now people let's try to act like we know how it works.
-
- 12 Dec, 2008 1 commit
-
-
A grep on xorg/* revealed there's no consumer of this define. Quote Alan Coopersmith: "The consumer was in past versions of the headers now located in proto/x11proto - for instance, in X11R6.0's xc/include/Xproto.h, all the event definitions were only available if NEED_EVENTS were defined, and all the reply definitions required NEED_REPLIES. Looks like Xproto.h dropped them by X11R6.3, which didn't have the #ifdef's anymore, so these are truly ancient now." Signed-off-by:
Peter Hutterer <peter.hutterer@redhat.com> Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
- 03 Dec, 2008 1 commit
-
-
Paulo Cesar Pereira de Andrade authored
Save in a few special cases, _X_EXPORT should not be used in C source files. Instead, it should be used in headers, and the proper C source include that header. Some special cases are symbols that need to be shared between modules, but not expected to be used by external drivers, and symbols that are accessible via LoaderSymbol/dlopen. This patch also adds conditionally some new sdk header files, depending on extensions enabled. These files were added to match pattern for other extensions/modules, that is, have the headers "deciding" symbol visibility in the sdk. These headers are: o Xext/panoramiXsrv.h, Xext/panoramiX.h o fbpict.h (unconditionally) o vidmodeproc.h o mioverlay.h (unconditionally, used only by xaa) o xfixes.h (unconditionally, symbols required by dri2) LoaderSymbol and similar functions now don't have different prototypes, in loaderProcs.h and xf86Module.h, so that both headers can be included, without the need of defining IN_LOADER. xf86NewInputDevice() device prototype readded to xf86Xinput.h, but not exported (and with a comment about it).
-
- 30 Nov, 2008 1 commit
-
-
Paulo Cesar Pereira de Andrade authored
This is the biggest "visibility" patch. Instead of doing a "export" symbol on demand, export everything in the sdk, so that if some module fails due to an unresolved symbol, it is because it is using a symbol not in the sdk. Most exported symbols shouldn't really be made visible, neither advertised in the sdk, as they are only used by a single shared object. Symbols in the sdk (or referenced in sdk macros), but not defined anywhere include: XkbBuildCoreState() XkbInitialMap XkbXIUnsupported XkbCheckActionVMods() XkbSendCompatNotify() XkbDDXFakePointerButton() XkbDDXApplyConfig() _XkbStrCaseCmp() _XkbErrMessages[] _XkbErrCode _XkbErrLocation _XkbErrData XkbAccessXDetailText() XkbNKNDetailMaskText() XkbLookupGroupAndLevel() XkbInitAtoms() XkbGetOrderedDrawables() XkbFreeOrderedDrawables() XkbConvertXkbComponents() XkbWriteXKBSemantics() XkbWriteXKBLayout() XkbWriteXKBKeymap() XkbWriteXKBFile() XkbWriteCFile() XkbWriteXKMFile() XkbWriteToServer() XkbMergeFile() XkmFindTOCEntry() XkmReadFileSection() XkmReadFileSectionName() InitExtInput() xf86CheckButton() xf86SwitchCoreDevice() RamDacSetGamma() RamDacRestoreDACValues() xf86Bpp xf86ConfigPix24 xf86MouseCflags[] xf86SupportedMouseTypes[] xf86NumMouseTypes xf86ChangeBusIndex() xf86EntityEnter() xf86EntityLeave() xf86WrapperInit() xf86RingBell() xf86findOptionBoolean() xf86debugListOptions() LoadSubModuleLocal() LoaderSymbolLocal() getInt10Rec() xf86CurrentScreen xf86ReallocatePciResources() xf86NewSerialNumber() xf86RandRSetInitialMode() fbCompositeSolidMask_nx1xn fbCompositeSolidMask_nx8888x0565C fbCompositeSolidMask_nx8888x8888C fbCompositeSolidMask_nx8x0565 fbCompositeSolidMask_nx8x0888 fbCompositeSolidMask_nx8x8888 fbCompositeSrc_0565x0565 fbCompositeSrc_8888x0565 fbCompositeSrc_8888x0888 fbCompositeSrc_8888x8888 fbCompositeSrcAdd_1000x1000 fbCompositeSrcAdd_8000x8000 fbCompositeSrcAdd_8888x8888 fbGeneration fbIn fbOver fbOver24 fbOverlayGeneration fbRasterizeEdges fbRestoreAreas fbSaveAreas composeFunctions VBEBuildVbeModeList() VBECalcVbeModeIndex() TIramdac3030CalculateMNPForClock() shadowBufPtr shadowFindBuf() miRRGetScreenInfo() RRSetScreenConfig() RRModePruneUnused() PixmanImageFromPicture() extern int miPointerGetMotionEvents() miClipPicture() miRasterizeTriangle() fbPush1toN() fbInitializeBackingStore() ddxBeforeReset() SetupSprite() InitSprite() DGADeliverEvent() SPECIAL CASES o defined as _X_INTERNAL xf86NewInputDevice() o defined as static fbGCPrivateKey fbOverlayScreenPrivateKey fbScreenPrivateKey fbWinPrivateKey o defined in libXfont.so, but declared in xorg/dixfont.h GetGlyphs() QueryGlyphExtents() QueryTextExtents() ParseGlyphCachingMode() InitGlyphCaching() SetGlyphCachingMode()
-
- 29 Feb, 2008 2 commits
-
-
Eamon Walsh authored
-
Eamon Walsh authored
Introduces dixLookupProperty() API.
-
- 06 Feb, 2008 1 commit
-
-
Eamon Walsh authored
-
- 05 Nov, 2007 1 commit
-
-
Daniel Stone authored
Replace with heap allocations.
-
- 10 Oct, 2007 2 commits
-
-
Eamon Walsh authored
-
Eamon Walsh authored
There will be no more faking of Success to hide things. XACE does not provide polyinstantiation.
-
- 26 Sep, 2007 1 commit
-
-
Peter Hutterer authored
-
- 15 Aug, 2007 1 commit
-
-
Eamon Walsh authored
-
- 21 Jul, 2007 1 commit
-
-
Adam Jackson authored
-
- 17 Apr, 2007 1 commit
-
-
Eamon Walsh authored
arbitrary X status codes instead of just TRUE/FALSE. The dix layer in most cases still does not propagate the return value of XACE hooks back to the client, however. There is more error propagation work to do.
-