Adapt for XCB::IsSupportedByWM changes

This commit is contained in:
Ilya Fedin 2022-05-20 17:10:33 +04:00 committed by John Preston
parent cea7f128a5
commit c25c3e043c

View file

@ -495,7 +495,9 @@ bool WindowExtentsSupported() {
#ifndef DESKTOP_APP_DISABLE_X11_INTEGRATION
namespace XCB = base::Platform::XCB;
if (::Platform::IsX11()
&& XCB::IsSupportedByWM(kXCBFrameExtentsAtomName.utf16())) {
&& XCB::IsSupportedByWM(
XCB::GetConnectionFromQt(),
kXCBFrameExtentsAtomName.utf16())) {
return true;
}
#endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION