Changeset View
Changeset View
Standalone View
Standalone View
client.cpp
Show First 20 Lines • Show All 1716 Lines • ▼ Show 20 Line(s) | 1713 | if (icon.isNull()) { | |||
---|---|---|---|---|---|
1717 | icon.addPixmap(KWindowSystem::icon(window(), 64, 64, false, KWindowSystem::ClassHint | KWindowSystem::XApp, info)); | 1717 | icon.addPixmap(KWindowSystem::icon(window(), 64, 64, false, KWindowSystem::ClassHint | KWindowSystem::XApp, info)); | ||
1718 | icon.addPixmap(KWindowSystem::icon(window(), 128, 128, false, KWindowSystem::ClassHint | KWindowSystem::XApp, info)); | 1718 | icon.addPixmap(KWindowSystem::icon(window(), 128, 128, false, KWindowSystem::ClassHint | KWindowSystem::XApp, info)); | ||
1719 | } | 1719 | } | ||
1720 | setIcon(icon); | 1720 | setIcon(icon); | ||
1721 | } | 1721 | } | ||
1722 | 1722 | | |||
1723 | void Client::getSyncCounter() | 1723 | void Client::getSyncCounter() | ||
1724 | { | 1724 | { | ||
1725 | if (!Xcb::Extensions::self()->isSyncAvailable()) | 1725 | // TODO: make sync working on XWayland | ||
1726 | static const bool isX11 = kwinApp()->operationMode() == Application::OperationModeX11; | ||||
1727 | if (!Xcb::Extensions::self()->isSyncAvailable() || !isX11) | ||||
1726 | return; | 1728 | return; | ||
1727 | 1729 | | |||
1728 | Xcb::Property syncProp(false, window(), atoms->net_wm_sync_request_counter, XCB_ATOM_CARDINAL, 0, 1); | 1730 | Xcb::Property syncProp(false, window(), atoms->net_wm_sync_request_counter, XCB_ATOM_CARDINAL, 0, 1); | ||
1729 | const xcb_sync_counter_t counter = syncProp.value<xcb_sync_counter_t>(XCB_NONE); | 1731 | const xcb_sync_counter_t counter = syncProp.value<xcb_sync_counter_t>(XCB_NONE); | ||
1730 | if (counter != XCB_NONE) { | 1732 | if (counter != XCB_NONE) { | ||
1731 | syncRequest.counter = counter; | 1733 | syncRequest.counter = counter; | ||
1732 | syncRequest.value.hi = 0; | 1734 | syncRequest.value.hi = 0; | ||
1733 | syncRequest.value.lo = 0; | 1735 | syncRequest.value.lo = 0; | ||
▲ Show 20 Lines • Show All 453 Lines • Show Last 20 Lines |