Port static get property wrappers to XCB in kwin/toplevel
Just replacing WId by xcb_window_id and using the XCB atom enum.
This commit is contained in:
parent
bcfa76ef87
commit
5ff8d2389e
2 changed files with 5 additions and 5 deletions
|
@ -154,7 +154,7 @@ void Toplevel::getWindowRole()
|
|||
/*!
|
||||
Returns SM_CLIENT_ID property for a given window.
|
||||
*/
|
||||
QByteArray Toplevel::staticSessionId(WId w)
|
||||
QByteArray Toplevel::staticSessionId(xcb_window_t w)
|
||||
{
|
||||
return getStringProperty(w, atoms->sm_client_id);
|
||||
}
|
||||
|
@ -162,9 +162,9 @@ QByteArray Toplevel::staticSessionId(WId w)
|
|||
/*!
|
||||
Returns WM_COMMAND property for a given window.
|
||||
*/
|
||||
QByteArray Toplevel::staticWmCommand(WId w)
|
||||
QByteArray Toplevel::staticWmCommand(xcb_window_t w)
|
||||
{
|
||||
return getStringProperty(w, XA_WM_COMMAND, ' ');
|
||||
return getStringProperty(w, XCB_ATOM_WM_COMMAND, ' ');
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
|
@ -385,8 +385,8 @@ protected:
|
|||
bool m_isDamaged;
|
||||
|
||||
private:
|
||||
static QByteArray staticSessionId(WId);
|
||||
static QByteArray staticWmCommand(WId);
|
||||
static QByteArray staticSessionId(xcb_window_t);
|
||||
static QByteArray staticWmCommand(xcb_window_t);
|
||||
static xcb_window_t staticWmClientLeader(xcb_window_t);
|
||||
// when adding new data members, check also copyToDeleted()
|
||||
Window client;
|
||||
|
|
Loading…
Reference in a new issue