diff --git a/scripting/workspace_wrapper.cpp b/scripting/workspace_wrapper.cpp index 35ef346d8d..c5b684a01b 100644 --- a/scripting/workspace_wrapper.cpp +++ b/scripting/workspace_wrapper.cpp @@ -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); } diff --git a/scripting/workspace_wrapper.h b/scripting/workspace_wrapper.h index d2752210dc..76d60bf5c4 100644 --- a/scripting/workspace_wrapper.h +++ b/scripting/workspace_wrapper.h @@ -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: //------------------------------------------------------------------