view: limit XCB header to Xwayland after 286b2146c3

../src/view.c:5:10: fatal error: 'xcb/xcb_icccm.h' file not found
 #include <xcb/xcb_icccm.h>
          ^~~~~~~~~~~~~~~~~
This commit is contained in:
Jan Beich 2022-12-19 10:47:06 +00:00
parent 8fe2f2a2a8
commit ae17cd2c8d

View file

@ -2,13 +2,16 @@
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <strings.h> #include <strings.h>
#include <xcb/xcb_icccm.h>
#include "common/scene-helpers.h" #include "common/scene-helpers.h"
#include "labwc.h" #include "labwc.h"
#include "ssd.h" #include "ssd.h"
#include "menu/menu.h" #include "menu/menu.h"
#include "workspaces.h" #include "workspaces.h"
#if HAVE_XWAYLAND
#include <xcb/xcb_icccm.h>
#endif
#define LAB_FALLBACK_WIDTH 640 #define LAB_FALLBACK_WIDTH 640
#define LAB_FALLBACK_HEIGHT 480 #define LAB_FALLBACK_HEIGHT 480
#define MAX(a, b) (((a) > (b)) ? (a) : (b)) #define MAX(a, b) (((a) > (b)) ? (a) : (b))