wayland: Put interface version defines in a common place

So far only one, but put it somewhere all files can see it.

https://bugzilla.gnome.org/show_bug.cgi?id=746141
This commit is contained in:
Jonas Ådahl 2015-03-13 21:38:24 +08:00
parent c7be8fd398
commit 7b2cdabc2e
2 changed files with 2 additions and 2 deletions

View File

@ -40,6 +40,8 @@
#include "config.h"
#define WL_SURFACE_HAS_BUFFER_SCALE 3
#define GDK_WINDOW_IS_WAYLAND(win) (GDK_IS_WINDOW_IMPL_WAYLAND (((GdkWindow *)win)->impl))
GdkKeymap *_gdk_wayland_keymap_new (void);

View File

@ -37,8 +37,6 @@
#include <string.h>
#include <errno.h>
#define WL_SURFACE_HAS_BUFFER_SCALE 3
#define WINDOW_IS_TOPLEVEL_OR_FOREIGN(window) \
(GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD && \
GDK_WINDOW_TYPE (window) != GDK_WINDOW_OFFSCREEN)