Skip to content

Commit

Permalink
Add support for xfixes client_disconnect_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wengxt committed Oct 15, 2024
1 parent 9989e72 commit 452672a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/modules/xcb/xcbconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,16 @@ XCBConnection::XCBConnection(XCBModule *xcb, const std::string &name)
if (xfixes_query && xfixes_query->major_version >= 2) {
hasXFixes_ = true;
xfixesFirstEvent_ = reply->first_event;

#ifdef XCB_XFIXES_SET_CLIENT_DISCONNECT_MODE
if (xfixes_query->major_version >= 6) {
FCITX_XCB_INFO()
<< "Set XFIXES client disconnect mode to TERMINATE";
xcb_xfixes_set_client_disconnect_mode(
conn_.get(),
XCB_XFIXES_CLIENT_DISCONNECT_FLAGS_TERMINATE);
}
#endif
}
}
}
Expand Down

0 comments on commit 452672a

Please sign in to comment.