Workspace::updateClientLayer operates on AbstractClient
Requires a virtual updateLayer in AbstractClient. Default implementation does nothing.icc-effect-5.14.5
parent
7d51838efc
commit
b84118a51b
|
@ -137,4 +137,8 @@ void AbstractClient::doSetActive()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AbstractClient::updateLayer()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -193,6 +193,7 @@ public:
|
||||||
* @param mode The tile mode (left/right) to give this window.
|
* @param mode The tile mode (left/right) to give this window.
|
||||||
*/
|
*/
|
||||||
virtual void setQuickTileMode(QuickTileMode mode, bool keyboard = false) = 0;
|
virtual void setQuickTileMode(QuickTileMode mode, bool keyboard = false) = 0;
|
||||||
|
virtual void updateLayer();
|
||||||
|
|
||||||
// TODO: remove boolean trap
|
// TODO: remove boolean trap
|
||||||
static bool belongToSameApplication(const AbstractClient* c1, const AbstractClient* c2, bool active_hack = false);
|
static bool belongToSameApplication(const AbstractClient* c1, const AbstractClient* c2, bool active_hack = false);
|
||||||
|
|
2
client.h
2
client.h
|
@ -392,7 +392,7 @@ public:
|
||||||
virtual Layer layer() const;
|
virtual Layer layer() const;
|
||||||
Layer belongsToLayer() const;
|
Layer belongsToLayer() const;
|
||||||
void invalidateLayer();
|
void invalidateLayer();
|
||||||
void updateLayer();
|
void updateLayer() override;
|
||||||
int sessionStackingOrder() const;
|
int sessionStackingOrder() const;
|
||||||
|
|
||||||
void setModal(bool modal);
|
void setModal(bool modal);
|
||||||
|
|
|
@ -102,7 +102,7 @@ namespace KWin
|
||||||
// Workspace
|
// Workspace
|
||||||
//*******************************
|
//*******************************
|
||||||
|
|
||||||
void Workspace::updateClientLayer(Client* c)
|
void Workspace::updateClientLayer(AbstractClient* c)
|
||||||
{
|
{
|
||||||
if (c)
|
if (c)
|
||||||
c->updateLayer();
|
c->updateLayer();
|
||||||
|
|
|
@ -180,7 +180,7 @@ public:
|
||||||
void lowerClientRequest(Client* c, NET::RequestSource src, xcb_timestamp_t timestamp);
|
void lowerClientRequest(Client* c, NET::RequestSource src, xcb_timestamp_t timestamp);
|
||||||
void restackClientUnderActive(AbstractClient*);
|
void restackClientUnderActive(AbstractClient*);
|
||||||
void restack(AbstractClient *c, AbstractClient *under, bool force = false);
|
void restack(AbstractClient *c, AbstractClient *under, bool force = false);
|
||||||
void updateClientLayer(Client* c);
|
void updateClientLayer(AbstractClient* c);
|
||||||
void raiseOrLowerClient(AbstractClient*);
|
void raiseOrLowerClient(AbstractClient*);
|
||||||
void resetUpdateToolWindowsTimer();
|
void resetUpdateToolWindowsTimer();
|
||||||
void restoreSessionStackingOrder(Client* c);
|
void restoreSessionStackingOrder(Client* c);
|
||||||
|
|
Loading…
Reference in New Issue