gdk/wayland: cope with the compositor implementing an older protocol than us

If we bind to a global with an higher version than implemented, or
we make requests that appeared in a later version, we would get
fatal wayland errors.

https://bugzilla.gnome.org/show_bug.cgi?id=704104
This commit is contained in:
Giovanni Campagna
2013-07-12 16:49:52 +02:00
parent aca3df3000
commit 047d60e797
3 changed files with 19 additions and 4 deletions

View File

@ -67,6 +67,7 @@ struct _GdkWaylandDisplay
GSource *event_source;
int init_ref_count;
int compositor_version;
struct xkb_context *xkb_context;
};