Changeset View
Changeset View
Standalone View
Standalone View
xwl/drag_x.cpp
Show First 20 Lines • Show All 402 Lines • ▼ Show 20 Line(s) | 402 | { | |||
---|---|---|---|---|---|
403 | xcb_connection_t *xcbConn = kwinApp()->x11Connection(); | 403 | xcb_connection_t *xcbConn = kwinApp()->x11Connection(); | ||
404 | auto cookie = xcb_get_property(xcbConn, | 404 | auto cookie = xcb_get_property(xcbConn, | ||
405 | 0, | 405 | 0, | ||
406 | m_srcWindow, | 406 | m_srcWindow, | ||
407 | atoms->xdnd_type_list, | 407 | atoms->xdnd_type_list, | ||
408 | XCB_GET_PROPERTY_TYPE_ANY, | 408 | XCB_GET_PROPERTY_TYPE_ANY, | ||
409 | 0, 0x1fffffff); | 409 | 0, 0x1fffffff); | ||
410 | 410 | | |||
411 | auto *reply = xcb_get_property_reply(xcbConn, cookie, NULL); | 411 | auto *reply = xcb_get_property_reply(xcbConn, cookie, nullptr); | ||
412 | if (reply == NULL) { | 412 | if (reply == nullptr) { | ||
413 | return; | 413 | return; | ||
414 | } | 414 | } | ||
415 | if (reply->type != XCB_ATOM_ATOM || reply->value_len == 0) { | 415 | if (reply->type != XCB_ATOM_ATOM || reply->value_len == 0) { | ||
416 | // invalid reply value | 416 | // invalid reply value | ||
417 | free(reply); | 417 | free(reply); | ||
418 | return; | 418 | return; | ||
419 | } | 419 | } | ||
420 | 420 | | |||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |