Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
fix linux builds
Browse files Browse the repository at this point in the history
The #if condition was wrongly inverted during the last huge refactor process.

Fixes: #286
  • Loading branch information
wangwenx190 committed Sep 23, 2023
1 parent 26b9996 commit d48b84e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/utils_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@
#include <QtGui/qpalette.h>
#include <QtGui/qguiapplication.h>
#if FRAMELESSHELPER_CONFIG(private_qt)
# if __has_include(<QtX11Extras/qx11info_x11.h>)
# include <QtX11Extras/qx11info_x11.h>
# define FRAMELESSHELPER_HAS_X11EXTRAS
# endif // __has_include(<QtX11Extras/qx11info_x11.h>)
#else // !FRAMELESSHELPER_CONFIG(private_qt)
# include <QtGui/qpa/qplatformnativeinterface.h>
# include <QtGui/qpa/qplatformwindow.h>
# if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
Expand All @@ -54,6 +49,11 @@
# include <QtGui/private/qtx11extras_p.h>
# define FRAMELESSHELPER_HAS_X11EXTRAS
# endif // (QT_VERSION >= QT_VERSION_CHECK(6, 2, 0))
#else // !FRAMELESSHELPER_CONFIG(private_qt)
# if __has_include(<QtX11Extras/qx11info_x11.h>)
# include <QtX11Extras/qx11info_x11.h>
# define FRAMELESSHELPER_HAS_X11EXTRAS
# endif // __has_include(<QtX11Extras/qx11info_x11.h>)
#endif // FRAMELESSHELPER_CONFIG(private_qt)

FRAMELESSHELPER_BEGIN_NAMESPACE
Expand Down

0 comments on commit d48b84e

Please sign in to comment.