Skip to content

Commit

Permalink
configure: remove redundant parts of xcb_xkb test
Browse files Browse the repository at this point in the history
testing the non-xkb xcb parts is unnecessary, as we already did that
separately.

Change-Id: I452cc746315117a0169f0e0c764fe7e0229437e9
Reviewed-by: Gatis Paeglis <[email protected]>
  • Loading branch information
ossilator authored and tronical committed Aug 2, 2017
1 parent 92ff8a2 commit 90588d5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions config.tests/qpa/xcb-xkb/xcb-xkb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
**
****************************************************************************/

#include <xcb/xcb.h>

// This is needed to make Qt compile together with XKB. xkb.h is using a variable
// which is called 'explicit', this is a reserved keyword in c++ */
#define explicit dont_use_cxx_explicit
Expand All @@ -47,15 +45,8 @@

int main(int, char **)
{
int primaryScreen = 0;

xcb_connection_t *connection = xcb_connect("", &primaryScreen);

// This takes more arguments in xcb-xkb < 1.10.
xcb_xkb_get_kbd_by_name_unchecked(NULL, 0, 0, 0, 0);

// This won't compile unless libxcb >= 1.5 which defines XCB_ATOM_PRIMARY.
int xcbAtomPrimary = XCB_ATOM_PRIMARY;

return 0;
}

0 comments on commit 90588d5

Please sign in to comment.