Change Client's clormap to xcb_colormap_t
At same time also renaming variable to follow naming scheme and have a sensible name. Also moved default value initialization into initializer list. REVIEW: 110283
This commit is contained in:
parent
41b37afa96
commit
3f69bb0e7f
3 changed files with 6 additions and 7 deletions
|
@ -108,6 +108,7 @@ Client::Client()
|
|||
, autoRaiseTimer(NULL)
|
||||
, shadeHoverTimer(NULL)
|
||||
, delayedMoveResizeTimer(NULL)
|
||||
, m_colormap(XCB_COLORMAP_NONE)
|
||||
, in_group(NULL)
|
||||
, m_windowGroup(XCB_WINDOW_NONE)
|
||||
, tab_group(NULL)
|
||||
|
@ -190,8 +191,6 @@ Client::Client()
|
|||
|
||||
max_mode = MaximizeRestore;
|
||||
|
||||
cmap = None;
|
||||
|
||||
//Client to workspace connections require that each
|
||||
//client constructed be connected to the workspace wrapper
|
||||
|
||||
|
|
8
client.h
8
client.h
|
@ -473,7 +473,7 @@ public:
|
|||
|
||||
QRect adjustedClientArea(const QRect& desktop, const QRect& area) const;
|
||||
|
||||
Colormap colormap() const;
|
||||
xcb_colormap_t colormap() const;
|
||||
|
||||
/// Updates visibility depending on being shaded, virtual desktop, etc.
|
||||
void updateVisibility();
|
||||
|
@ -931,7 +931,7 @@ private:
|
|||
QTimer* autoRaiseTimer;
|
||||
QTimer* shadeHoverTimer;
|
||||
QTimer* delayedMoveResizeTimer;
|
||||
Colormap cmap;
|
||||
xcb_colormap_t m_colormap;
|
||||
QString cap_normal, cap_iconic, cap_suffix, cap_deco;
|
||||
Group* in_group;
|
||||
xcb_window_t m_windowGroup;
|
||||
|
@ -1177,9 +1177,9 @@ inline bool Client::hasNETSupport() const
|
|||
return info->hasNETSupport();
|
||||
}
|
||||
|
||||
inline Colormap Client::colormap() const
|
||||
inline xcb_colormap_t Client::colormap() const
|
||||
{
|
||||
return cmap;
|
||||
return m_colormap;
|
||||
}
|
||||
|
||||
inline void Client::invalidateLayer()
|
||||
|
|
|
@ -102,7 +102,7 @@ bool Client::manage(xcb_window_t w, bool isMapped)
|
|||
|
||||
info = new WinInfo(this, display(), m_client, rootWindow(), properties, 2);
|
||||
|
||||
cmap = attr.colormap;
|
||||
m_colormap = attr.colormap;
|
||||
|
||||
getResourceClass();
|
||||
getWindowRole();
|
||||
|
|
Loading…
Reference in a new issue