Bug 460213

Summary: KWin fails to build with HAVE_X11_XINPUT=0
Product: [Plasma] kwin Reporter: Janet Blackquill <uhhadd>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: xaver.hugl
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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