xwl: prefer using local variable than fetching again

This commit is contained in:
Aleix Pol 2020-10-20 02:14:18 +02:00
parent e81e950693
commit c016f34dee

View file

@ -158,7 +158,7 @@ void Selection::registerXfixes()
const uint32_t mask = XCB_XFIXES_SELECTION_EVENT_MASK_SET_SELECTION_OWNER |
XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_WINDOW_DESTROY |
XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_CLIENT_CLOSE;
xcb_xfixes_select_selection_input(kwinApp()->x11Connection(),
xcb_xfixes_select_selection_input(xcbConn,
m_window,
m_atom,
mask);