Changeset View
Changeset View
Standalone View
Standalone View
scripting/workspace_wrapper.cpp
Show First 20 Lines • Show All 341 Lines • ▼ Show 20 Line(s) | 341 | { | |||
---|---|---|---|---|---|
342 | return screens()->geometry(); | 342 | return screens()->geometry(); | ||
343 | } | 343 | } | ||
344 | 344 | | |||
345 | QSize WorkspaceWrapper::virtualScreenSize() const | 345 | QSize WorkspaceWrapper::virtualScreenSize() const | ||
346 | { | 346 | { | ||
347 | return screens()->size(); | 347 | return screens()->size(); | ||
348 | } | 348 | } | ||
349 | 349 | | |||
350 | void WorkspaceWrapper::sendClientToScreen(AbstractClient *client, int screen) | ||||
351 | { | ||||
352 | if (screen < 0 || screen >= screens()->count()) { | ||||
353 | return; | ||||
354 | } | ||||
355 | workspace()->sendClientToScreen(client, screen); | ||||
356 | } | ||||
357 | | ||||
350 | QtScriptWorkspaceWrapper::QtScriptWorkspaceWrapper(QObject* parent) | 358 | QtScriptWorkspaceWrapper::QtScriptWorkspaceWrapper(QObject* parent) | ||
351 | : WorkspaceWrapper(parent) {} | 359 | : WorkspaceWrapper(parent) {} | ||
352 | 360 | | |||
353 | QList<KWin::AbstractClient *> QtScriptWorkspaceWrapper::clientList() const | 361 | QList<KWin::AbstractClient *> QtScriptWorkspaceWrapper::clientList() const | ||
354 | { | 362 | { | ||
355 | return workspace()->allClientList(); | 363 | return workspace()->allClientList(); | ||
356 | } | 364 | } | ||
357 | 365 | | |||
Show All 21 Lines |