Wrap QDesktopWidget::resized() signal in KWin scripting

Requested by mgottschlag.
This commit is contained in:
Martin Gräßlin 2012-04-09 23:01:04 +02:00
parent 561199762f
commit ba6eece7ad
2 changed files with 6 additions and 0 deletions

View file

@ -38,6 +38,7 @@ WorkspaceWrapper::WorkspaceWrapper(QObject* parent) : QObject(parent)
connect(ws, SIGNAL(numberDesktopsChanged(int)), SIGNAL(numberDesktopsChanged(int)));
connect(ws, SIGNAL(clientDemandsAttentionChanged(KWin::Client*,bool)), SIGNAL(clientDemandsAttentionChanged(KWin::Client*,bool)));
connect(QApplication::desktop(), SIGNAL(screenCountChanged(int)), SIGNAL(numberScreensChanged(int)));
connect(QApplication::desktop(), SIGNAL(resized(int)), SIGNAL(screenResized(int)));
foreach (KWin::Client *client, ws->clientList()) {
setupClientConnections(client);
}

View file

@ -97,6 +97,11 @@ signals:
* @param count The new number of screens
**/
void numberScreensChanged(int count);
/**
* This signal is emitted when the size of @p screen changes.
* Don't forget to fetch an updated client area.
**/
void screenResized(int screen);
public:
//------------------------------------------------------------------