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 committed by Consolatis
parent 5dba59f87a
commit 3dec9cf40c

View file

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