Don't assume the default QPA platform is XCB
Review Request #124203 - Created June 29, 2015 and submitted
I compiled my QT to have the default platform as Wayland, not XCB, which seems to be why kwin_wayland was crashing without KWIN_COMPOSE=Q
Before I was getting a crash, this snippet of the back trace:
Only when KWIN_COMPOSE was unset.
5 <signal handler called>
No symbol table info available.
6 0xb75fe50a in __GI_strstr (haystack_start=0x1 <error: Cannot access memory at address 0x1>, needle_start=0xb4db8756 "X.Org")at strstr.c:63 haystack = 0x1 <error: Cannot access memory at address 0x1> needle = 0xb4db8756 "X.Org" needle_len = <optimized out> haystack_len = <optimized out> ok = true
7 0xb4da0094 in KWin::getXServerVersion () at /srcbuild/kwin/libkwineffects/kwinglplatform.cpp:66major = -5414223950535816263 minor = 4294967297 patch = -5414898745570328168 dpy = 0xb0d03320
Adding the additional isPlatformX11 prevented kwin_wayland from crashing, and it ran