display: Make lack of required X extensions a fatal error

https://gitlab.gnome.org/GNOME/mutter/issues/272  


Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
Alan Coopersmith 2018-11-03 07:54:49 -07:00 committed by Georges Basile Stavracas Neto
parent fb8dc91893
commit 791bec3cf7

View File

@ -553,9 +553,9 @@ enable_compositor (MetaDisplay *display)
if (!META_X11_DISPLAY_HAS_COMPOSITE (x11_display) || if (!META_X11_DISPLAY_HAS_COMPOSITE (x11_display) ||
!META_X11_DISPLAY_HAS_DAMAGE (x11_display)) !META_X11_DISPLAY_HAS_DAMAGE (x11_display))
{ {
meta_warning ("Missing %s extension required for compositing", meta_fatal ("Missing %s extension required for compositing",
!META_X11_DISPLAY_HAS_COMPOSITE (x11_display) ? !META_X11_DISPLAY_HAS_COMPOSITE (x11_display) ?
"composite" : "damage"); "composite" : "damage");
return; return;
} }
@ -563,7 +563,9 @@ enable_compositor (MetaDisplay *display)
x11_display->composite_minor_version; x11_display->composite_minor_version;
if (version < 3) if (version < 3)
{ {
meta_warning ("Your version of COMPOSITE is too old."); meta_fatal ("Your version of COMPOSITE (%d.%d) is too old. Version 3.0 or later required.",
x11_display->composite_major_version,
x11_display->composite_minor_version);
return; return;
} }
} }