~gustavold/ubuntu/maverick/xorg-server/670016

« back to all changes in this revision

Viewing changes to hw/xwin/glx/indirect.c

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2010-08-24 15:44:10 UTC
  • mfrom: (1.1.36 upstream)
  • Revision ID: james.westby@ubuntu.com-20100824154410-t90f5jzulee934do
Tags: 2:1.9.0-0ubuntu1

* Merge from (unreleased) Debian experimental.  Remaining Ubuntu changes:
  - rules, control:
    + Disable SELinux, libaudit-dev is not in main yet (LP 406226).
      Drop libaudit-dev from build-deps.
  - rules: Enable xcsecurity (LP 247537).
  - local/xvfb-run*: Add correct docs about error codes (LP 328205)
  - rules: Add --with-extra-module-dir to support GL alternatives.
  - control: Xvfb depends on xauth, x11-xkb-utils. (LP 500102)
  - rules, local/64-xorg-xkb.rules: Don't use keyboard-configuration
    until it's available.
  - control: Update some versioned Breaks for Ubuntu versions.
  - debian/patches:
    + 100_rethrow_signals.patch:
      When aborting, re-raise signals for apport
    + 109_fix-swcursor-crash.patch:
      Avoid dereferencing null pointer while reloading cursors during
      resume. (LP 371405)
    + 111_armel-drv-fallbacks.patch:
      Add support for armel driver fallbacks.
    + 121_only_switch_vt_when_active.diff:
      Add a check to prevent the X server from changing the VT when killing
      GDM from the console.
    + 122_xext_fix_card32_overflow_in_xauth.patch:
      Fix server crash when “xauth generate” is called with large timeout.
    + 157_check_null_modes.patch, 162_null_crtc_in_rotation.patch,
      166_nullptr_xinerama_keyrepeat.patch, 167_nullptr_xisbread.patch
      169_mipointer_nullptr_checks.patch,
      172_cwgetbackingpicture_nullptr_check.patch:
      Fix various segfaults in xserver by checking pointers for NULL
      values before dereferencing them.
    + 165_man_xorg_conf_no_device_ident.patch
      Correct man page
    + 168_glibc_trace_to_stderr.patch:
      Report abort traces to stderr instead of terminal
    + 184_virtual_devices_autodetect.patch:
      Use vesa for qemu device, which is not supported by cirrus
    + 187_edid_quirk_hp_nc8430.patch:
      Quirk for another LPL monitor (LP 380009)
    + 188_default_primary_to_first_busid.patch:
      Pick the first device and carry on (LP 459512)
    + 189_xserver_1.5.0_bg_none_root.patch:
      Create a root window with no background.
    + 190_cache-xkbcomp_output_for_fast_start_up.patch:
      Cache keyboard settings.
    + 191-Xorg-add-an-extra-module-path.patch:
      Add support for the alternatives module path.
    + 197_xvfb-randr.patch:
      Adds xrandr support to xvfb. (LP 516123)
    + 198_nohwaccess.patch:
      Adds a -nohwaccess argument to make X not access the hardware
      ports directly.
    + 200_randr-null.patch:
      Clarify a pointer initialization.  
    + 203_gestures-extension.patch:
    + 202_xf86CoordinationsToWindows.patch:
      Add gesture extension support (LP: 616678)
    + debian/serverminver:
      Bump for gesture support
* New upstream release:
  - Fixes crash in DamageUnregister on session close (LP: #343694)
  - Fixes crash with extremely large windows exposed by xpdf (Closes: #320627)
* Drop 17-fix-DRI2-segfault-when-clientGone.diff: fixed upstream in more
  generality.
* debian/patches/204_fix-neg-sync-transition.patch:
  - Fix edge case in SYNC extension resulting in GNOME screensaver's 
    fade-to-screensaver being uninteruptible.  (LP: #595555)

Show diffs side-by-side

added added

removed removed

Lines of Context:
375
375
static __GLXcontext *glxWinCreateContext(__GLXscreen *screen,
376
376
                                        __GLXconfig *modes,
377
377
                                        __GLXcontext *baseShareContext);
378
 
static __GLXdrawable *glxWinCreateDrawable(__GLXscreen *screen,
 
378
static __GLXdrawable *glxWinCreateDrawable(ClientPtr client,
 
379
                                          __GLXscreen *screen,
379
380
                                          DrawablePtr pDraw,
 
381
                                          XID drawId,
380
382
                                          int type,
381
 
                                          XID drawId,
 
383
                                          XID glxDrawId,
382
384
                                          __GLXconfig *conf);
383
385
 
384
386
static Bool glxWinRealizeWindow(WindowPtr pWin);
901
903
}
902
904
 
903
905
static __GLXdrawable *
904
 
glxWinCreateDrawable(__GLXscreen *screen,
 
906
glxWinCreateDrawable(ClientPtr client,
 
907
                    __GLXscreen *screen,
905
908
                    DrawablePtr pDraw,
 
909
                    XID drawId,
906
910
                    int type,
907
 
                    XID drawId,
 
911
                    XID glxDrawId,
908
912
                    __GLXconfig *conf)
909
913
{
910
914
  __GLXWinDrawable *glxPriv;
916
920
 
917
921
  memset(glxPriv, 0, sizeof *glxPriv);
918
922
 
919
 
  if(!__glXDrawableInit(&glxPriv->base, screen, pDraw, type, drawId, conf)) {
 
923
  if(!__glXDrawableInit(&glxPriv->base, screen, pDraw, type, glxDrawId, conf)) {
920
924
    free(glxPriv);
921
925
    return NULL;
922
926
  }