Skip to content

Commit 452672a

Browse files
committed
Add support for xfixes client_disconnect_mode
1 parent 9989e72 commit 452672a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/modules/xcb/xcbconnection.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,16 @@ XCBConnection::XCBConnection(XCBModule *xcb, const std::string &name)
173173
if (xfixes_query && xfixes_query->major_version >= 2) {
174174
hasXFixes_ = true;
175175
xfixesFirstEvent_ = reply->first_event;
176+
177+
#ifdef XCB_XFIXES_SET_CLIENT_DISCONNECT_MODE
178+
if (xfixes_query->major_version >= 6) {
179+
FCITX_XCB_INFO()
180+
<< "Set XFIXES client disconnect mode to TERMINATE";
181+
xcb_xfixes_set_client_disconnect_mode(
182+
conn_.get(),
183+
XCB_XFIXES_CLIENT_DISCONNECT_FLAGS_TERMINATE);
184+
}
185+
#endif
176186
}
177187
}
178188
}

0 commit comments

Comments
 (0)