summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2013-12-09 13:16:01 -0500
committerAdam Jackson <ajax@redhat.com>2013-12-09 13:20:37 -0500
commit576f3d36dd324bd0d16c9968f1ded5c5eead3569 (patch)
tree1393b9adaadf0831633eaef480ee523739289378
parentf10f36d91db1b21c2ce5a531b4fa5f96fcbdc2f0 (diff)
damageext: Die if we can't create the Xinerama resource type
Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r--damageext/damageext.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/damageext/damageext.c b/damageext/damageext.c
index d6469230d..5650953f2 100644
--- a/damageext/damageext.c
+++ b/damageext/damageext.c
@@ -725,6 +725,8 @@ void
PanoramiXDamageInit(void)
{
XRT_DAMAGE = CreateNewResourceType(PanoramiXDamageDelete, "XineramaDamage");
+ if (!XRT_DAMAGE)
+ FatalError("Couldn't Xineramify Damage extension\n");
PanoramiXSaveDamageCreate = ProcDamageVector[X_DamageCreate];
ProcDamageVector[X_DamageCreate] = PanoramiXDamageCreate;