From 29e56fe37e13c7fd0e12858b085af9279e1774fc Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Tue, 18 Oct 2022 20:18:52 +0200 Subject: xcb: Add xlib wrapper for XFlush() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also avoid to include xlib headers directly. Change-Id: Id60a9b39a9d8284d5d0ab3df1ed61f844f1e68e4 Reviewed-by: JiDe Zhang Reviewed-by: Tor Arne Vestbø (cherry picked from commit be4d339ce784921e0d1b127a86e025a1274e25b4) Reviewed-by: Liang Qi --- src/plugins/platforms/xcb/qt_xlib_wrapper.h | 54 +++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 src/plugins/platforms/xcb/qt_xlib_wrapper.h (limited to 'src/plugins/platforms/xcb/qt_xlib_wrapper.h') diff --git a/src/plugins/platforms/xcb/qt_xlib_wrapper.h b/src/plugins/platforms/xcb/qt_xlib_wrapper.h new file mode 100644 index 0000000000..3f77068348 --- /dev/null +++ b/src/plugins/platforms/xcb/qt_xlib_wrapper.h @@ -0,0 +1,54 @@ +/**************************************************************************** +** +** Copyright (C) 2022 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the plugins of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:COMM$ +** +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** $QT_END_LICENSE$ +** +** +** +** +** +** +** +** +** +** +** +** +** +** +** +** +** +** +** +******************************************************************************/ + +#ifndef QT_XLIB_WRAPPER_H +#define QT_XLIB_WRAPPER_H + +#ifdef __cplusplus +extern "C" { +#endif + + typedef struct _XDisplay Display; + void qt_XFlush(Display *dpy); + +#ifdef __cplusplus +} +#endif + +#endif // QT_XLIB_WRAPPER_H -- cgit v1.2.3