diff options
author | Keith Packard <keithp@keithp.com> | 2012-08-06 16:42:34 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-08-06 16:42:34 -0700 |
commit | 360fa7736b214cae3ccd39feb4dc87b9e7e9734c (patch) | |
tree | 192beae5a89f415210a44cba56f620fcbcac060d /dix | |
parent | 2100e72388a3dc174093d80c9723f021b4614d17 (diff) | |
parent | ac09a4a091a43188241365152e1244fd8fd93ee7 (diff) |
Merge remote-tracking branch 'airlied/for-keithp'
Diffstat (limited to 'dix')
-rw-r--r-- | dix/pixmap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dix/pixmap.c b/dix/pixmap.c index 9163e99eb..241881262 100644 --- a/dix/pixmap.c +++ b/dix/pixmap.c @@ -148,6 +148,10 @@ PixmapPtr PixmapShareToSlave(PixmapPtr pixmap, ScreenPtr slave) pixmap->drawable.height, depth, 0, pixmap->devKind, NULL); + /* have the slave pixmap take a reference on the master pixmap + later we destroy them both at the same time */ + pixmap->refcnt++; + spix->master_pixmap = pixmap; ret = slave->SetSharedPixmapBacking(spix, handle); |