Bug 460213 - KWin fails to build with HAVE_X11_XINPUT=0
Summary: KWin fails to build with HAVE_X11_XINPUT=0
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: git master
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-10 22:25 UTC by Janet Blackquill
Modified: 2024-07-12 13:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janet Blackquill 2022-10-10 22:25:25 UTC
Someone probably forgot to guard code referring to XInput stuff.

In file included from /usr/include/c++/12/memory:76,
                 from /home/jblackquill/KDE/Sources/kwin/src/core/platform.h:19,
                 from /home/jblackquill/KDE/Sources/kwin/src/backends/x11/standalone/x11_standalone_platform.h:11,
                 from /home/jblackquill/KDE/Sources/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:9:
/usr/include/c++/12/bits/unique_ptr.h: In instantiation of ‘void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = KWin::XInputIntegration]’:
/usr/include/c++/12/bits/unique_ptr.h:396:17:   required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = KWin::XInputIntegration; _Dp = std::default_delete<KWin::XInputIntegration>]’
/home/jblackquill/KDE/Sources/kwin/src/backends/x11/standalone/x11_standalone_platform.cpp:108:50:   required from here
/usr/include/c++/12/bits/unique_ptr.h:93:23: error: invalid application of ‘sizeof’ to incomplete type ‘KWin::XInputIntegration’
   93 |         static_assert(sizeof(_Tp)>0,
      |
Comment 1 Zamundaaa 2024-07-12 13:55:44 UTC
This has been fixed by https://invent.kde.org/plasma/kwin/-/merge_requests/3374