commit 43fb888bd01cf9d3d277e77a52a3d0c93ccff8bd
Author: Adam Jackson <ajax@redhat.com>
Date:   Mon Nov 9 16:00:26 2015 -0500

    xserver 1.18.0
    
    Signed-off-by: Adam Jackson <ajax@redhat.com>

commit 2203735887ab548b3ee004400d1b89149aae412c
Author: Axel Davy <axel.davy@ens.fr>
Date:   Wed Nov 4 18:42:42 2015 +0100

    present: Fix Async swap logic
    
    According to the spec, PresentOptionAsync should only
    trigger a different behaviour when the target msc has been reached.
    
    In this case if the driver is able to do async swaps, we use
    them to avoid a screen copy.
    
    When the target msc hasn't been reached yet, we want to use sync swaps.
    
    v2: Fix indentation and simplify checks for Async flips
    
    Signed-off-by: Axel Davy <axel.davy@ens.fr>
    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>

commit 3f35909acba117dc8934920d788c7ce612bce444
Author: Jammy Zhou <Jammy.Zhou@amd.com>
Date:   Wed Oct 28 18:39:10 2015 +0800

    present: Execute right away if target_msc equals current_msc
    
    It is according to the protocol:
    
    "If 'options' contains PresentOptionAsync, and the 'target-msc'
    is less than or equal to the current msc for 'window', then
    the operation will be performed as soon as possible, not
    necessarily waiting for the next vertical blank interval."
    
    Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
    Reviewed-by: Axel Davy <axel.davy@ens.fr>

commit 7d1e4783853f9830344d101ceab087feb19995be
Author: Daniel Martin <consume.noise@gmail.com>
Date:   Thu Oct 29 14:58:11 2015 +0100

    modesetting: Remove XF86_CRTC_VERSION checks
    
    The ifdef checks for XF86_CRTC_VERSION >= 3/5 are remnants from the
    out-of-tree driver. Within the tree, we can rely on:
        xf86Crtc.h:#define XF86_CRTC_VERSION 6
    
    Signed-off-by: Daniel Martin <consume.noise@gmail.com>
    Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 45c83a266d18eb515313aa3f1a4d7ff6af53be5d
Author: Daniel Martin <consume.noise@gmail.com>
Date:   Thu Oct 29 14:58:10 2015 +0100

    modesetting: Free output_ids in drmmode_set_mode_major()
    
    We calloc() output_ids. Let's free() it, too.
    
    Signed-off-by: Daniel Martin <consume.noise@gmail.com>
    Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 2674d424020bd71d4f99b8d8de8b0b21aa490d54
Author: Daniel Martin <consume.noise@gmail.com>
Date:   Thu Oct 29 14:58:09 2015 +0100

    modesetting: Handle failures in setting a CRTC to a DRM mode properly
    
    This fixes a bug where running the card out of PPLL's when hotplugging
    another monitor would result in all of the displays going blank and
    failing to work properly until X was restarted or the user switched to
    another VT.
    
    [Michel Dänzer: Pass errno instead of -ret to strerror()]
    [Daniel Martin: Add \n to log message]
    
    Picked from xf86-video-ati
        7186a87 Handle failures in setting a CRTC to a DRM mode properly
    
    Signed-off-by: Daniel Martin <consume.noise@gmail.com>
    Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit 250666586e2b6f3ed1371340452dc2be2d094d40
Author: Adam Jackson <ajax@redhat.com>
Date:   Thu Oct 29 10:08:17 2015 -0400

    vidmode: Drop the unused event code
    
    As the code says, this is "far from complete".  So far, in fact, that
    it's been basically untouched for twenty years (XFree86 3.1!).  As far
    as I can tell it was never enabled in any XFree86 build, and certainly
    has never been enabled since Xorg 7.0.
    
    Also, K&R.
    
    Signed-off-by: Adam Jackson <ajax@redhat.com>
    Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>

commit 478efe285a440c33b053bdf0bfbfdd482f429f01
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Tue Oct 27 19:44:28 2015 -0700

    Xserver.man: document more transports for -nolisten & -listen options
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>

commit 8fc295bde9a736f3c8c047031a6698d140d5266f
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Tue Oct 27 19:44:27 2015 -0700

    Xorg.man: update to reflect -nolisten tcp becoming default
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>

commit 75157b7dbf4ed4db0492328a44e4e67dda83f769
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Tue Oct 27 19:44:26 2015 -0700

    Xorg.man: move XLOCAL details to X(7) man page instead
    
    These settings affect clients, not server, so belong there, next to
    the information about how to set $DISPLAY.
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>

commit 50c167164700e8ead9b7ccf9f9eafc7541baac75
Author: Martin Peres <martin.peres@linux.intel.com>
Date:   Mon Jul 20 10:37:30 2015 +0300

    os: make sure the clientsWritable fd_set is initialized before use
    
    In WaitForSomething(), the fd_set clientsWritable may be used
    unitialized when the boolean AnyClientsWriteBlocked is set in the
    WakeupHandler(). This leads to a crash in FlushAllOutput() after
    x11proto's commit 2c94cdb453bc641246cc8b9a876da9799bee1ce7.
    
    The problem did not manifest before because both the XFD_SIZE and the
    maximum number of clients were set to 256. As the connectionTranslation
    table was initalized for the 256 clients to 0, the test on the index not
    being 0 was aborting before dereferencing the client #0.
    
    As of commit 2c94cdb453bc641246cc8b9a876da9799bee1ce7 in x11proto, the
    XFD_SIZE got bumped to 512. This lead the OutputPending fd_set to have
    any fd above 256 to be uninitialized which in turns lead to reading an
    index after the end of the ConnectionTranslation table. This index would
    then be used to find the client corresponding to the fd marked as
    pending writes and would also result to an out-of-bound access which
    would usually be the fatal one.
    
    Fix this by zeroing the clientsWritable fd_set at the beginning of
    WaitForSomething(). In this case, the bottom part of the loop, which
    would indirectly call FlushAllOutput, will not do any work but the next
    call to select will result in the execution of the right codepath. This
    is exactly what we want because we need to know the writable clients
    before handling them. In the end, it also makes sure that the fds above
    MaxClient are initialized, preventing the crash in FlushAllOutput().
    
    Thanks to everyone involved in tracking this one down!
    
    Reported-by: Karol Herbst <freedesktop@karolherbst.de>
    Reported-by: Tobias Klausmann <tobias.klausmann@mni.thm.de>
    Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
    Tested-by: Tobias Klausmann <tobias.klausmann@mni.thm.de>
    Tested-by: Martin Peres <martin.peres@linux.intel.com>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91316
    Cc: Ilia Mirkin  <imirkin@alum.mit.edu>
    Cc: Olivier Fourdan <ofourdan@redhat.com
    Cc: Adam Jackson <ajax@redhat.com>
    Cc: Alan Coopersmith <alan.coopersmith@oracle.com
    Cc: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit bb78c464f09f515db557182a458b12b63c3b52d7
Author: Adam Jackson <ajax@redhat.com>
Date:   Tue Oct 27 13:28:37 2015 -0400

    build: Remove stale miext/cw include paths
    
    Signed-off-by: Adam Jackson <ajax@redhat.com>
    Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>

commit 524844c8c18e226aad30feb371b19ef491d83449
Author: Julien Cristau <jcristau@debian.org>
Date:   Tue Oct 27 13:23:13 2015 +0100

    Xext: fix build with --disable-xace
    
    Regression from 990cf5b2828f73dc7a07f1e38f608af39acfd81d
    
    Signed-off-by: Julien Cristau <jcristau@debian.org>
    Cc: Andrew Eikum <aeikum@codeweavers.com>
    Cc: Peter Hutterer <peter.hutterer@who-t.net>
    Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>

commit ac2f27f1a9fa8cd88c5dbe7ec0f96238eecf2c3e
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Tue Oct 27 11:51:49 2015 +0900

    DRI2: Sync radeonsi_pci_ids.h from Mesa
    
    Fixes DRI2 client driver name mapping for newer AMD GPUs with the
    modesetting driver, allowing the DRI2 extension to initialize.
    
    Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

commit d8b7a900cf912cadb5915b3924dd6ce5a74505e7
Author: Adam Jackson <ajax@redhat.com>
Date:   Mon Oct 26 13:47:04 2015 -0400

    xserver 1.17.99.902 (1.18 RC2)
    
    Signed-off-by: Adam Jackson <ajax@redhat.com>

commit 47b00fa4bf3b67736957296492310f7fdd6c0a25
Author: Adam Jackson <ajax@redhat.com>
Date:   Wed Oct 21 12:15:34 2015 -0400

    xfree86: Use same inb/outb asm code for i386 amd64 and ia64
    
    This matches the GCCUSESGAS path from the old monolith build (where that
    macro was actually set), and fixes the build on modern OSX.
    
    Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
    Signed-off-by: Adam Jackson <ajax@redhat.com>

commit c99fb550e06207e83ec89463fe32bd6bceca45f8
Author: Dave Airlie <airlied@gmail.com>
Date:   Sun Sep 13 07:45:15 2015 +1000

    xf86: don't add gpus from udev if autoAddGPU is set
    
    At startup the server wasn't adding devices, but nothing
    was blocking hotplug devices by the look of it.
    
    bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91388
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>

commit 912f1fe2bb1b640d55fc44fcf636b6ca40d7f40b
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sun Apr 5 10:32:03 2015 +0100

    Xv: Only stop the adaptors when the Pixmap is finally destroyed
    
    Pixmaps are reference counted and DestroyPixmap is called for the
    removal of every reference. However, we only want to stop the adaptors
    writing into the Pixmap just before the Pixmap is finally destroyed,
    similar to how Windows are handled.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

commit 413cb2ff1d754b5f19d77ff19cddf40793989c03
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Mon Feb 16 09:49:18 2015 +0000

    present: Fix missed notify MSC computation
    
    Only treat divisor==0 as async to immediately report the actual vblank.
    If the user species a non-zero divisor, we should compute the missed
    vblank properly or else we report too early.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Mario Kleiner <mario.kleiner.de@gmail.com>

commit 702c0a247f5523b43652befaf6be548ddbbe9dee
Author: Alberto Milone <alberto.milone@canonical.com>
Date:   Thu Dec 12 10:00:09 2013 +0100

    randr: make RROutputChanged change the main protocol screen not the gpu screen
    
    We only set changes on the main protocol screen as, for example
    in RRSetChanged() and RRTellChanged(), therefore we should follow
    the same logic when reporting that an output changed in
    RROutputChanged().
    
    This means that RRTellChanged() will then update the relevant
    timestamps also when events come from gpu screens.
    
    [ajax: Fix mixed code and decls]
    
    Reviewed-by: Dave Airlie <airlied@redhat.com>
    Signed-off-by: Alberto Milone <alberto.milone@canonical.com>

commit 2092f12a243b9f7682f542b593b77c96d455ec89
Author: Hans de Goede <hdegoede@redhat.com>
Date:   Wed Oct 21 11:36:06 2015 +0200

    linux: Do not call FatalError from xf86CloseConsole
    
    FatalError ends up calling xf86CloseConsole itself, so calling FatalError
    from within xf86CloseConsole is not a good idea.
    
    Make switch_to log errors using xf86Msg(X_WARNING, ...) and return success
    (or failure).
    
    This makes switch_to match the other error checking done in xf86CloseConsole
    which all logs warnings and continues.
    
    Add checking of the return value in xf86OpenConsole and call
    FatalError there when switch_to fails, to preserve the error-handling
    behavior of xf86OpenConsole.
    
    BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1269210
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>

commit ee06f674bbcd796324d6daf69bfb5d8856e94008
Author: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Date:   Thu Oct 15 22:28:49 2015 -0700

    Xi: Silence some tautological warnings
    
    xichangehierarchy.c:424:23: warning: comparison of constant 536870911 with expression of type 'uint16_t'
          (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare,Semantic Issue]
        if (stuff->length > (INT_MAX >> 2))
            ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
    xichangehierarchy.c:438:26: warning: comparison of constant 536870911 with expression of type 'uint16_t'
          (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare,Semantic Issue]
            if ((any->length > (INT_MAX >> 2)) || (len < (any->length << 2)))
                 ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
    
    Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
    Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>

commit 113c0bb4fd764da8c08d8f30abe350c7650c9fc2
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Oct 19 23:15:36 2015 +0200

    hurd: fix xorg-wrapper build
    
    hurd does not have any PATH_MAX limitation. misc.h provides a default value
    which is fine here.
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>

commit f9a04d19aef77bf787b8d322305a6971d24a6ba1
Author: Keith Packard <keithp@keithp.com>
Date:   Mon Sep 21 07:16:12 2015 +0100

    fonts: Continue when font calls return Suspended more than once
    
    Patch 3ab6cd31cbdf8095b2948034fce5fb645422d8da fixed Xinerama
    interactions with font servers by not putting clients to sleep
    multiple times. However, it introduced additional changes dealing with
    libXfont routine returning Suspended more than once for the same
    request. This additional change was to abandon processing of the
    current request and free the closure data by jumping to
    'xinerama_sleep' in each of the functions.
    
    Font library functions shouldn't return Suspended more than once,
    except for ListFontsWithInfo, which produces multiple replies, and
    thus ends up returning Suspended many times during processing.
    
    With the jump to xinerama_sleep occurring after the first reply was
    processed, the closure for the request was freed and future calls into
    the ListFontsWithInfo callback resulted in dereferencing freed
    memory.
    
    This patch removes the added branches, reverting the code to its
    previous behaviour, which permitted multiple Suspended returns and
    simply waited for the client to be signaled again so that the callback
    could continue processing the request.
    
    Signed-off-by: Keith Packard <keithp@keithp.com>
    Reviewed-by: Adam Jackson <ajax@redhat.com>

commit 5b582a4a0350c253d729efb31b710851ae9a958e
Merge: 1d4aa67 27ad212
Author: Adam Jackson <ajax@redhat.com>
Date:   Mon Oct 19 12:23:22 2015 -0400

    Merge remote-tracking branch 'jeremyhu/master'

commit 1d4aa672424d8b1629fda11400b88607b5066965
Author: Julien Cristau <jcristau@debian.org>
Date:   Mon Oct 19 15:42:30 2015 +0200

    xorg-wrapper: when starting the server as root, reset its environment
    
    When the server is privileged, we shouldn't be passing the user's
    environment directly.
    
    Clearing the environment is recommended by the libdbus maintainers, see
    https://bugs.freedesktop.org/show_bug.cgi?id=52202
    
    v2: rename envp to empty_envp (Jeremy)
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83849
    Signed-off-by: Julien Cristau <jcristau@debian.org>

commit 08c4912406b965bbac0a3a52413c374a073c051b
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Oct 19 14:47:43 2015 +0200

    xorg-wrapper: fix build without libdrm
    
    Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>

commit a4cd8ee5f8e8de776c7f764656770311cdbde0d2
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Oct 19 14:47:42 2015 +0200

    hurd: disable detecting drm
    
    Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>

commit 27ad21254f257bac6c647315d749ee69f20c24e0
Author: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Date:   Sun Oct 18 23:01:53 2015 -0700

    XQuartz: Cleanup formatting of DarwinEQInit that was butchered by automation a few years ago
    
    Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>

commit 3db7e332d374bf8cee581c31b7d50d7ac0509187
Author: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Date:   Sun Oct 18 23:03:23 2015 -0700

    XQuartz: Make sure that darwin_all_modifier_mask_additions is 0-terminated
    
    Found by ASan
    
    X.Org X Server 1.17.99.901 Build Date: 20151018
    ================================================================
    ==40471==ERROR: AddressSanitizer: global-buffer-overflow on address 0x000101fed7a4 at pc 0x000101584030 bp 0x70000029f920 sp 0x70000029f918
    READ of size 4 at 0x000101fed7a4 thread T7
        #0 0x10158402f in DarwinEQInit darwinEvents.c:377
        #1 0x10157f3bc in InitInput darwin.c:566
        #2 0x101be87ad in dix_main main.c:268
        #3 0x10159131b in server_thread quartzStartup.c:66
        #4 0x7fff8a535c12 in _pthread_body (/usr/lib/system/libsystem_pthread.dylib+0x3c12)
        #5 0x7fff8a535b8f in _pthread_start (/usr/lib/system/libsystem_pthread.dylib+0x3b8f)
        #6 0x7fff8a533374 in thread_start (/usr/lib/system/libsystem_pthread.dylib+0x1374)
    
    0x000101fed7a4 is located 0 bytes to the right of global variable 'darwin_all_modifier_mask_additions' defined in 'darwinEvents.c:181:12'
    (0x101fed7a0) of size 4
    SUMMARY: AddressSanitizer: global-buffer-overflow darwinEvents.c:377 DarwinEQInit
    Shadow bytes around the buggy address:
      0x1000203fdaa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      0x1000203fdab0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      0x1000203fdac0: f9 f9 f9 f9 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9
      0x1000203fdad0: 00 00 00 00 00 00 00 00 f9 f9 f9 f9 00 00 00 00
      0x1000203fdae0: 00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 00 f9 f9 f9
    =>0x1000203fdaf0: f9 f9 f9 f9[04]f9 f9 f9 f9 f9 f9 f9 00 00 00 00
      0x1000203fdb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      0x1000203fdb10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      0x1000203fdb20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      0x1000203fdb30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      0x1000203fdb40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    Shadow byte legend (one shadow byte represents 8 application bytes):
      Addressable:           00
      Partially addressable: 01 02 03 04 05 06 07
      Heap left redzone:       fa
      Heap right redzone:      fb
      Freed heap region:       fd
      Stack left redzone:      f1
      Stack mid redzone:       f2
      Stack right redzone:     f3
      Stack partial redzone:   f4
      Stack after return:      f5
      Stack use after scope:   f8
      Global redzone:          f9
      Global init order:       f6
      Poisoned by user:        f7
      Container overflow:      fc
      Array cookie:            ac
      Intra object redzone:    bb
      ASan internal:           fe
      Left alloca redzone:     ca
      Right alloca redzone:    cb
    Thread T7 created by T0 here:
        #0 0x10242ee99 in wrap_pthread_create
    (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/7.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib+0x37e99)
        #1 0x101591089 in create_thread quartzStartup.c:78
        #2 0x101590ed9 in QuartzInitServer quartzStartup.c:95
        #3 0x1015697eb in X11ApplicationMain X11Application.m:1277
        #4 0x101575dc0 in X11ControllerMain X11Controller.m:984
        #5 0x10159171a in server_main quartzStartup.c:127
        #6 0x101540fc0 in do_start_x11_server bundle-main.c:436
        #7 0x101544869 in _Xstart_x11_server mach_startupServer.c:189
        #8 0x101545c96 in mach_startup_server mach_startupServer.c:398
        #9 0x7fff8d1b70f3 in mach_msg_server (/usr/lib/system/libsystem_kernel.dylib+0x110f3)
        #10 0x1015416e7 in main bundle-main.c:774
        #11 0x7fff8bd975ac in start (/usr/lib/system/libdyld.dylib+0x35ac)
        #12 0x0  (<unknown module>)
    
    Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>

commit ec6294116cc41ff1c3be081b626952fb7e614244
Author: Jeremy Huddleston <jeremyhu@apple.com>
Date:   Sun Oct 18 23:12:52 2015 -0700

    osinit: Silence -Wunused-variable warnings
    
    osinit.c:161:24: warning: unused variable 'devnull' [-Wunused-variable,Unused Entity Issue]
        static const char *devnull = "/dev/null";
                           ^
    osinit.c:162:10: warning: unused variable 'fname' [-Wunused-variable,Unused Entity Issue]
        char fname[PATH_MAX];
             ^
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>

commit 0a5d54f721de7e3ab3b6f4b080190a92bbe3429b
Author: Jeremy Huddleston <jeremyhu@apple.com>
Date:   Sun Oct 18 23:12:51 2015 -0700

    dix: Silence -Wunused-variable warning by moving window.c off of legacy region defines
    
    window.c:223:15: warning: unused variable 'pScreen' [-Wunused-variable,Unused Entity Issue]
        ScreenPtr pScreen = pWin->drawable.pScreen;
                  ^
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>

commit e09875701b980b8c4578fb310a922c9934c34eef
Author: Jeremy Huddleston <jeremyhu@apple.com>
Date:   Sun Oct 18 23:12:50 2015 -0700

    glx: Fix header length error checking in __glXDisp_RenderLarge
    
    glxcmds.c:2206:46: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare,Semantic Issue]
            if ((cmdlen = safe_pad(hdr->length)) < 0)
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>

commit 5dc415048e4091b18cd7d123ebeae8f95ed5a4f5
Author: Jeremy Huddleston <jeremyhu@apple.com>
Date:   Sun Oct 18 23:12:49 2015 -0700

    randr: Silence -Wshift-negative-value warnings
    
    rrtransform.c:199:23: warning: shifting a negative signed value is undefined [-Wshift-negative-value,Semantic Issue]
                rot_cos = F(-1);
                          ^~~~~
    rrtransform.c:114:14: note: expanded from macro 'F'
                    ^~~~~~~~~~~~~~
    ../render/picture.h:200:24: note: expanded from macro 'IntToxFixed'
                            ^~~~~~~~~~~~~~~~~~~~~~
    /opt/X11/include/pixman-1/pixman.h:130:56: note: expanded from macro 'pixman_int_to_fixed'
                                                               ~~~ ^
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>

commit 9a2a05a9a7ba02921fa29844c4cad41243c41326
Author: Jeremy Huddleston <jeremyhu@apple.com>
Date:   Wed Oct 14 15:13:42 2015 -0700

    xdmcp: Declare XdmcpFatal _X_NORETURN
    
    xdmcp.c:1404:1: warning: function 'XdmcpFatal' could be declared with attribute 'noreturn'
    [-Wmissing-noreturn,Semantic Issue]
    
    Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
    Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit a7a00e4bd8153e0386c7e58d6b30a7a96f15fdb0
Author: Jeremy Huddleston <jeremyhu@apple.com>
Date:   Wed Oct 14 15:13:39 2015 -0700

    security: Silence some benign -Wformat warnings
    
    XID may be either 'unsigned long' or 'unsigned int' depending on:
    
    typedef unsigned long CARD64;
    typedef unsigned int CARD32;
    typedef unsigned long long CARD64;
    typedef unsigned long CARD32;
    
    typedef unsigned long XID;
    typedef CARD32 XID;
    
    so when building with -Wformat, we get some warnings that are benign.  This silences them.
    
    security.c:215:52: warning: format specifies type 'int' but the argument has type 'XID' (aka 'unsigned long')
          [-Wformat,Format String Issue]
        SecurityAudit("revoked authorization ID %d\n", pAuth->id);
                                                ~~     ^~~~~~~~~
                                                %lu
      CC       dpmsstubs.lo
    security.c:553:25: warning: format specifies type 'int' but the argument has type 'XID' (aka 'unsigned long')
          [-Wformat,Format String Issue]
             client->index, pAuth->id, pAuth->trustLevel, pAuth->timeout,
                            ^~~~~~~~~
    security.c:553:55: warning: format specifies type 'int' but the argument has type 'CARD32' (aka 'unsigned long')
          [-Wformat,Format String Issue]
             client->index, pAuth->id, pAuth->trustLevel, pAuth->timeout,
                                                          ^~~~~~~~~~~~~~
    security.c:554:10: warning: format specifies type 'int' but the argument has type 'XID' (aka 'unsigned long')
          [-Wformat,Format String Issue]
             pAuth->group, eventMask);
             ^~~~~~~~~~~~
    security.c:554:24: warning: format specifies type 'int' but the argument has type 'Mask' (aka 'unsigned long')
          [-Wformat,Format String Issue]
             pAuth->group, eventMask);
                           ^~~~~~~~~
    security.c:781:19: warning: format specifies type 'unsigned int' but the argument has type 'Mask' (aka 'unsigned
    long')
          [-Wformat,Format String Issue]
                      requested, rec->id, cid,
                      ^~~~~~~~~
    security.c:781:30: warning: format specifies type 'unsigned int' but the argument has type 'XID' (aka 'unsigned long')
          [-Wformat,Format String Issue]
                      requested, rec->id, cid,
                                 ^~~~~~~
    security.c:863:23: warning: format specifies type 'unsigned int' but the argument has type 'XID' (aka 'unsigned long')
          [-Wformat,Format String Issue]
                          rec->pWin->drawable.id, wClient(rec->pWin)->index,
                          ^~~~~~~~~~~~~~~~~~~~~~
    security.c:893:31: warning: format specifies type 'unsigned int' but the argument has type 'XID' (aka 'unsigned long')
          [-Wformat,Format String Issue]
                                  rec->pWin->drawable.id,
                                  ^~~~~~~~~~~~~~~~~~~~~~
    security.c:915:39: warning: format specifies type 'unsigned int' but the argument has type 'XID' (aka 'unsigned long')
          [-Wformat,Format String Issue]
                      rec->client->index, rec->pWin->drawable.id,
                                          ^~~~~~~~~~~~~~~~~~~~~~
    
    Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
    Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit aa73d587fece225753d8e6b8773a9c8b85823bd9
Author: Jeremy Huddleston <jeremyhu@apple.com>
Date:   Wed Oct 14 15:13:38 2015 -0700

    xres: Silence -Wunused-function warnings when building !COMPOSITE or !RENDER
    
    xres.c:422:1: warning: unused function 'ResFindCompositeClientWindowPixmaps' [-Wunused-function,Unused Entity Issue]
    ResFindCompositeClientWindowPixmaps (void *value, XID id, void *cdata)
    ^
    
    Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
    Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit 85eb90ea45e89033b97bf71a13c5c70fec8f6871
Author: Jeremy Huddleston <jeremyhu@apple.com>
Date:   Wed Oct 14 15:13:36 2015 -0700

    xdmauth: Correct miscall of abs() to instrad call labs()
    
    xdmauth.c:230:13: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of
    type
    'int'
          which may cause truncation of value [-Wabsolute-value,Semantic Issue]
            if (abs(now - client->time) > TwentyFiveMinutes) {
                ^
    xdmauth.c:230:13: note: use function 'labs' instead [Semantic Issue]
            if (abs(now - client->time) > TwentyFiveMinutes) {
                ^~~
                labs
    xdmauth.c:302:9: warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type
    'int' which
          may cause truncation of value [-Wabsolute-value,Semantic Issue]
        if (abs(client->time - now) > TwentyMinutes) {
            ^
    xdmauth.c:302:9: note: use function 'labs' instead [Semantic Issue]
        if (abs(client->time - now) > TwentyMinutes) {
            ^~~
            labs
    
    Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
    Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit 9f0fcd14b52f8481cbb3b3b9c6e06f64ff003cc8
Author: Jeremy Huddleston <jeremyhu@apple.com>
Date:   Wed Oct 14 15:13:35 2015 -0700

    randr: Correct a miscall of abs() to instead call fabs()
    
    rrtransform.c:124:22: warning: using integer absolute value function 'abs' when
          argument is of floating point type [-Wabsolute-value,Semantic Issue]
                if ((v = abs(f_transform->m[j][i])) > max)
                         ^
    rrtransform.c:124:22: note: use function 'fabs' instead [Semantic Issue]
                if ((v = abs(f_transform->m[j][i])) > max)
                         ^~~
                         fabs
    
    Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
    Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit 610dd8a58a75bb6a5b7d7abbae476d1cc4be519e
Author: Jeremy Huddleston <jeremyhu@apple.com>
Date:   Wed Oct 14 15:13:34 2015 -0700

    mi: Correct a miscall of abs() to instead call fabs()
    
    miarc.c:1714:9: warning: using integer absolute value function
    'abs' when
          argument is of floating point type [-Wabsolute-value,Semantic Issue]
        if (abs(parc->angle2) >= 360.0)
            ^
    miarc.c:1714:9: note: use function 'fabs' instead [Semantic Issue]
        if (abs(parc->angle2) >= 360.0)
            ^~~
            fabs
    
    Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
    Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>

commit 4513f924a7065edbd267cf96837af94ce5a58a6f
Author: Ken Thomases <ken@codeweavers.com>
Date:   Mon Oct 12 16:45:41 2015 -0700

    XQuartz: Fix how we calculate the height of the OSX menu bar
    
    +[NSScreen mainScreen] does not mean the primary display.  It used to mean the
    one with the key window.  When "Displays have separate spaces" is enabled, it
    means the active screen, the one whose menu bar is mostly opaque.  As such, it
    may not be the screen whose lower-left corner is located at (0, 0).  That's
    why its max-Y is not necessarily comparable to its height.  That only works
    for the primary display.
    
    This code could use [[NSScreen screens] firstObject].  This is always the
    primary display, the one whose lower-left corner is at (0, 0).
    
    Once that's done, the above change should be reverted.  The height of the
    visible frame would be the full height of the screen minus the menu bar _and
    the Dock_ if the Dock is along the bottom of the screen.
    
    Actually, there's a theoretically-simpler approach: use
    -[NSMenu menuBarHeight].  That replaces a long-deprecated method
    +[NSMenuView menuBarHeight].  However, there was a bug in Tiger that led to
    the former not working while the latter still worked. I haven't actually
    checked recently.
    
    CrossOver's still-kicking X server code uses this code, which tries all of
    the above:
    
           NSScreen* primaryScreen = [[NSScreen screens] objectAtIndex:0];
           aquaMenuBarHeight = [[NSApp mainMenu] menuBarHeight];
           if (!aquaMenuBarHeight) aquaMenuBarHeight = [NSMenuView menuBarHeight];
           if (!aquaMenuBarHeight) aquaMenuBarHeight =
               NSHeight([primaryScreen frame]) - NSMaxY([primaryScreen visibleFrame]);
    
    Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
    Signed-off-by: Ken Thomases <ken@codeweavers.com>

commit 6e6827aac33eddeacfb37ef3d7b0397b1446bf66
Author: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Date:   Mon Oct 12 02:06:10 2015 -0700

    XQuartz: Remove InfoPlist.strings
    
    Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>

commit df80e2649aa47957986554928e6bf41b86c15240
Author: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Date:   Mon Oct 12 02:04:11 2015 -0700

    XQuartz: Relax App Transport Security for communicating with the update server
    
    Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>

commit 880d4e78b1823bcc0e66e68270af1a475f097bb5
Author: Jonas Ådahl <jadahl@gmail.com>
Date:   Wed Oct 7 12:02:39 2015 +0800

    xwayland: Set physical screen size to something
    
    When we have a single output, just set it to the physical size of that
    output. Otherwise try to approximate it calculating a mean m.m. per
    dot. Last fallback is to default to 96 DPI.
    
    Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
    Reviewed-by: Daniel Stone <daniels@collabora.com>

commit 216bdbc7351e2078d94857a3323f6cd8f0d2f191
Author: Jonas Ådahl <jadahl@gmail.com>
Date:   Wed Oct 7 12:02:38 2015 +0800

    xwayland: Update actual screen and root window size on output hot plug
    
    When a new output is hot-plugged we need to not only update our internal
    screen dimensions, but also the dix screen dimensions, screenInfo
    dimensions and the root window dimensions.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=92273
    
    Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
    Reviewed-by: Daniel Stone <daniels@collabora.com>

commit 211d4c2d353b5e379716484055a3f58235ea65f4
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Dec 14 15:55:22 2011 +0000

    render: Propagate allocation failure from createSourcePicture()
    
    All the callers were already checking for failure, except that
    createSourcePicture() itself was failing to check whether it
    successfully allocated the Picture.
    
    [ajax: Rebase, fix line wrap of preceding line]
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>

commit 8a26a4aff570744347a8bed19f693bf631be464e
Author: Alexandr Shadchin <alexandr.shadchin@gmail.com>
Date:   Sun Nov 27 02:49:02 2011 +0600

    bsd: Remove LINKKIT
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com>

commit ab3e34bf9ddff90261fbbe0e2604887459cd70ad
Author: Alexandr Shadchin <alexandr.shadchin@gmail.com>
Date:   Sun Nov 27 02:49:01 2011 +0600

    xfree86: Remove 386BSD
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com>

commit c877048c8509a03f6aa69e533ab86c1039cfb6df
Author: Jon TURNEY <jon.turney@dronecode.org.uk>
Date:   Thu Jun 30 15:30:40 2011 +0100

    glx: Synchronize Xserver glx/rensize.c with mesa src/glx/compsize.c
    
    Noticed while investigating https://bugs.freedesktop.org/show_bug.cgi?id=30102
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>

commit d08ac3660651c8614a1780750b76c48eeb0870b7
Author: Jamey Sharp <jamey@minilop.net>
Date:   Thu May 12 15:21:52 2011 -0700

    kdrive: Delete unused TOUCHSCREEN define.
    
    There's nothing in configure to enable this, and KdTsPhyScreen isn't
    defined anywhere.
    
    [ajax: Rebase, also clean up Xfbdev]
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Jamey Sharp <jamey@minilop.net>

commit e31fe8115ee080b58b2e96a5106f38e64944ce5e
Author: Olivier Fourdan <ofourdan@redhat.com>
Date:   Wed Sep 23 15:35:58 2015 +0200

    xwayland: Adjust screen size with rotation
    
    bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92076
    Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
    Tested-by: Artem Chudinov <arzeth0@gmail.com>
    Reviewed-by: Dave Airlie <airlied@redhat.com>

commit f6ce23fbfc8804204fa103f98b94478387b94040
Author: Fredrik Höglund <fredrik@kde.org>
Date:   Thu Sep 10 23:33:20 2015 +0200

    present: Don't stash the MSC value when present_get_ust_msc fails
    
    Otherwise we stash an uninitalized value, and later use it to compute
    the msc_offset for the window.  Also initialize ust and crtc_msc so we
    never use uninitalized values when present_get_ust_msc fails.
    
    This fixes clients getting stuck waiting indefinitely for an idle
    event when a CRTC is turned off.
    
    Signed-off-by: Fredrik Höglund <fredrik@kde.org>
    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>

commit c1f5f9022f31ca4d662cc125fa80cb25386da6d1
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sun Sep 27 18:41:35 2015 -0700

    glamor: Get rid of an extraneous ; at the end of a C source line
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Signed-off-by: Eric Anholt <eric@anholt.net>
    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>

commit 10e9116b3f709bec6d6a50446c1341441a0564e4
Author: Rui Matos <tiagomatos@gmail.com>
Date:   Tue Jul 15 15:57:20 2014 +0200

    xwayland-input: Always set the xkb group index on modifiers events
    
    While we have keyboard focus, the server's xkb code is already locking
    and latching modifiers appropriately while processing keyboard
    events.
    
    Since there is no guaranteed order between wl_keyboard key and
    modifiers events, if we got the modifiers event with a locked or
    latched modifier and then process the key press event for that
    modifier we would wrongly unlock/unlatch. To prevent this, we ignore
    locked and latched modifiers while any of our surfaces has keyboard
    focus.
    
    But we always need to set the xkb group index since this might be
    triggered programatically by the wayland compositor at any time.
    
    Reviewed-by: Daniel Stone <daniels@collabora.com>

commit f937032ee6526af3c9206a2d8c6eacdeeb490d3b
Author: Andreas Wettstein <wettstein509@solnet.ch>
Date:   Sat Feb 15 17:37:24 2014 +0100

    xkb: Keyboard mouse button emulation should not suppress other keyboard events
    
    With this change, when a key mapped to an action to emulate mouse button
    presses and releases is held down, other keys pressed during that time are
    still processed normally.  This is a prerequisite for proper support of
    ISOLock.
    
    Signed-off-by: Andreas Wettstein <wettstein509@solnet.ch>
    Reviewed-by: Daniel Stone <daniel@fooishbar.org>

commit 5447ac45bc090e8f3269979af4db55f619c5f278
Author: Andreas Wettstein <wettstein509@solnet.ch>
Date:   Sat Feb 15 17:36:51 2014 +0100

    xkb: Suppress autorepeat for Set and Lock of Mods, Groups, and Controls
    
    The autorepeat for these actions was not correctly implemented, as the key
    repeat would be mistakenly interpreted as key releases.  Rather than fixing
    this, this change simply disables autorepeat for Set/Lock actions, for two
    reasons:
    
    - Autorepeating Set/Lock keys make complicate the interactions of actions.
    
    - Autorepeating Set/Lock keys have no apparent benefit, but hurt in the real
      world for layouts such as de(neo): Neo has a Level5 shift on the LSGT key,
      and a Level5 lock on Level5 of the same key.  This is unusable if LSGT
      autorepeats.  However, disabling autorepeat for key LSGT completely is not
      ideal for users that have a "usual" layout besides Neo, where LSGT carries
      symbols.
    
    Signed-off-by: Andreas Wettstein <wettstein509@solnet.ch>
    Reviewed-by: Daniel Stone <daniel@fooishbar.org>

commit fbac451724f7e1b8ce6b6e0505cc33ccd41c5158
Author: Arcady Goldmints-Orlov <arcadyg@nvidia.com>
Date:   Thu Oct 4 14:22:13 2012 -0700

    Fix alphamap interactions with wfb
    
    Set a destructor function on pixman images and call fbFinishAccess()
    from there, rather than directly from free_pixman_pict(). This ensures
    that fbFinishAccess() gets called even if pixman still has a reference
    to the image after free_pixman_pict(), as is the case for alphamaps.
    
    [ajax: Squash an unused variable warning in the non-wfb build]
    
    Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
    Signed-off-by: Arcady Goldmints-Orlov <arcadyg@nvidia.com>
    Reviewed-by: Søren Sandmann <ssp@redhat.com>

commit 19a87257f92e7f57a167fc03fba014ee22d8e1ab
Author: Emil Velikov <emil.l.velikov@gmail.com>
Date:   Fri Sep 25 14:04:34 2015 +0100

    glamor: move 'dri3_capable' extension checks after eglMakeCurrent
    
    Otherwise we'll fail and/or crash as no context is bound.
    
    Fixes: 64e6124f27e (glamor: move GL_OES_EGL_image check next to EGL_EXT_image_dma_buf_import)
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92105
    Cc: Michel Dänzer <michel@daenzer.net>
    Cc: Nick Sarnie <commendsarnex@gmail.com>
    Reported-by: Nick Sarnie <commendsarnex@gmail.com>
    Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
    Tested-by: Nick Sarnie <commendsarnex@gmail.com>
    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>

commit dca5770af9e20bb1148374ebfd60931a81b148a2
Merge: a31bbc4 21f384b
Author: Adam Jackson <ajax@redhat.com>
Date:   Fri Sep 25 10:23:28 2015 -0400

    Merge remote-tracking branch 'mchalupa/output-bugs'
