Wrap QDesktopWidget::resized() signal in KWin scripting
Requested by mgottschlag.
This commit is contained in:
parent
561199762f
commit
ba6eece7ad
2 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
//------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue