Skip to content

Commit

Permalink
remove xcb
Browse files Browse the repository at this point in the history
  • Loading branch information
nnyyxxxx committed Feb 21, 2025
1 parent fb6979a commit 04e0d67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/xwayland/Dnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ xcb_window_t CX11DataDevice::getProxyWindow(xcb_window_t window) {
xcb_get_property_reply_t* proxyReply = xcb_get_property_reply(g_pXWayland->pWM->connection, proxyCookie, nullptr);

const auto isValidPropertyReply = [](xcb_get_property_reply_t* reply) {
return reply && reply->type == XCB_ATOM_WINDOW && reply->format == XCB_PROPERTY_FORMAT_32BIT && xcb_get_property_value_length(reply) == sizeof(xcb_window_t);
return reply && reply->type == XCB_ATOM_WINDOW && reply->format == PROPERTY_FORMAT_32BIT && xcb_get_property_value_length(reply) == sizeof(xcb_window_t);
};

if (isValidPropertyReply(proxyReply)) {
Expand Down
2 changes: 1 addition & 1 deletion src/xwayland/Dnd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#define XDND_VERSION 5

#define XCB_PROPERTY_FORMAT_32BIT 32
#define PROPERTY_FORMAT_32BIT 32
#define XCB_PROPERTY_LENGTH 1
#define XCB_PROPERTY_OFFSET 0

Expand Down

0 comments on commit 04e0d67

Please sign in to comment.