Changeset View
Changeset View
Standalone View
Standalone View
scripting/workspace_wrapper.cpp
Show First 20 Lines • Show All 220 Lines • ▼ Show 20 Line(s) | |||||
221 | 221 | | |||
222 | QSize WorkspaceWrapper::workspaceSize() const | 222 | QSize WorkspaceWrapper::workspaceSize() const | ||
223 | { | 223 | { | ||
224 | return QSize(workspaceWidth(), workspaceHeight()); | 224 | return QSize(workspaceWidth(), workspaceHeight()); | ||
225 | } | 225 | } | ||
226 | 226 | | |||
227 | QSize WorkspaceWrapper::displaySize() const | 227 | QSize WorkspaceWrapper::displaySize() const | ||
228 | { | 228 | { | ||
229 | return QSize(KWin::displayWidth(), KWin::displayHeight()); | 229 | return screens()->displaySize(); | ||
230 | } | 230 | } | ||
231 | 231 | | |||
232 | int WorkspaceWrapper::displayWidth() const | 232 | int WorkspaceWrapper::displayWidth() const | ||
233 | { | 233 | { | ||
234 | return KWin::displayWidth(); | 234 | return displaySize().width(); | ||
235 | } | 235 | } | ||
236 | 236 | | |||
237 | int WorkspaceWrapper::displayHeight() const | 237 | int WorkspaceWrapper::displayHeight() const | ||
238 | { | 238 | { | ||
239 | return KWin::displayHeight(); | 239 | return displaySize().height(); | ||
240 | } | 240 | } | ||
241 | 241 | | |||
242 | QRect WorkspaceWrapper::clientArea(ClientAreaOption option, const QPoint &p, int desktop) const | 242 | QRect WorkspaceWrapper::clientArea(ClientAreaOption option, const QPoint &p, int desktop) const | ||
243 | { | 243 | { | ||
244 | return Workspace::self()->clientArea(static_cast<clientAreaOption>(option), p, desktop); | 244 | return Workspace::self()->clientArea(static_cast<clientAreaOption>(option), p, desktop); | ||
245 | } | 245 | } | ||
246 | 246 | | |||
247 | QRect WorkspaceWrapper::clientArea(ClientAreaOption option, const KWin::Client *c) const | 247 | QRect WorkspaceWrapper::clientArea(ClientAreaOption option, const KWin::Client *c) const | ||
▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines |