Signal desktopPresenceChanged carries AbstractClient as argument
This commit is contained in:
parent
e672a53721
commit
1bfba1765c
7 changed files with 6 additions and 6 deletions
|
@ -247,6 +247,7 @@ Q_SIGNALS:
|
|||
* Emitted whenever the demands attention state changes.
|
||||
**/
|
||||
void demandsAttentionChanged();
|
||||
void desktopPresenceChanged(KWin::AbstractClient*, int); // to be forwarded by Workspace
|
||||
|
||||
protected:
|
||||
AbstractClient();
|
||||
|
|
1
client.h
1
client.h
|
@ -636,7 +636,6 @@ Q_SIGNALS:
|
|||
void clientFinishUserMovedResized(KWin::Client*);
|
||||
void captionChanged();
|
||||
void desktopChanged();
|
||||
void desktopPresenceChanged(KWin::Client*, int); // to be forwarded by Workspace
|
||||
void fullScreenChanged();
|
||||
void transientChanged();
|
||||
void modalChanged();
|
||||
|
|
|
@ -231,7 +231,7 @@ EffectsHandlerImpl::EffectsHandlerImpl(Compositor *compositor, Scene *scene)
|
|||
}
|
||||
);
|
||||
connect(ws, &Workspace::desktopPresenceChanged, this,
|
||||
[this](Client *c, int old) {
|
||||
[this](AbstractClient *c, int old) {
|
||||
if (!c->effectWindow()) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ WorkspaceWrapper::WorkspaceWrapper(QObject* parent) : QObject(parent)
|
|||
{
|
||||
KWin::Workspace *ws = KWin::Workspace::self();
|
||||
KWin::VirtualDesktopManager *vds = KWin::VirtualDesktopManager::self();
|
||||
connect(ws, SIGNAL(desktopPresenceChanged(KWin::Client*,int)), SIGNAL(desktopPresenceChanged(KWin::Client*,int)));
|
||||
connect(ws, &Workspace::desktopPresenceChanged, this, &WorkspaceWrapper::desktopPresenceChanged);
|
||||
connect(ws, &Workspace::currentDesktopChanged, this, &WorkspaceWrapper::currentDesktopChanged);
|
||||
connect(ws, SIGNAL(clientAdded(KWin::Client*)), SIGNAL(clientAdded(KWin::Client*)));
|
||||
connect(ws, SIGNAL(clientAdded(KWin::Client*)), SLOT(setupClientConnections(KWin::Client*)));
|
||||
|
|
|
@ -88,7 +88,7 @@ private:
|
|||
Q_DISABLE_COPY(WorkspaceWrapper)
|
||||
|
||||
Q_SIGNALS:
|
||||
void desktopPresenceChanged(KWin::Client *client, int desktop);
|
||||
void desktopPresenceChanged(KWin::AbstractClient *client, int desktop);
|
||||
void currentDesktopChanged(int desktop, KWin::AbstractClient *client);
|
||||
void clientAdded(KWin::Client *client);
|
||||
void clientRemoved(KWin::Client *client);
|
||||
|
|
|
@ -464,7 +464,7 @@ Client* Workspace::createClient(xcb_window_t w, bool is_mapped)
|
|||
connect(c, SIGNAL(geometryShapeChanged(KWin::Toplevel*,QRect)), m_compositor, SLOT(checkUnredirect()));
|
||||
connect(c, SIGNAL(blockingCompositingChanged(KWin::Client*)), m_compositor, SLOT(updateCompositeBlocking(KWin::Client*)));
|
||||
connect(c, SIGNAL(clientFullScreenSet(KWin::Client*,bool,bool)), ScreenEdges::self(), SIGNAL(checkBlocking()));
|
||||
connect(c, SIGNAL(desktopPresenceChanged(KWin::Client*,int)), SIGNAL(desktopPresenceChanged(KWin::Client*,int)), Qt::QueuedConnection);
|
||||
connect(c, &Client::desktopPresenceChanged, this, &Workspace::desktopPresenceChanged, Qt::QueuedConnection);
|
||||
if (!c->manage(w, is_mapped)) {
|
||||
Client::deleteClient(c);
|
||||
return NULL;
|
||||
|
|
|
@ -441,7 +441,7 @@ Q_SIGNALS:
|
|||
void workspaceInitialized();
|
||||
|
||||
//Signals required for the scripting interface
|
||||
void desktopPresenceChanged(KWin::Client*, int);
|
||||
void desktopPresenceChanged(KWin::AbstractClient*, int);
|
||||
void currentDesktopChanged(int, KWin::AbstractClient*);
|
||||
void clientAdded(KWin::Client*);
|
||||
void clientRemoved(KWin::Client*);
|
||||
|
|
Loading…
Reference in a new issue