Changeset View
Changeset View
Standalone View
Standalone View
xdgshellclient.cpp
Show First 20 Lines • Show All 339 Lines • ▼ Show 20 Line(s) | |||||
340 | } | 340 | } | ||
341 | 341 | | |||
342 | QSize XdgShellClient::clientSize() const | 342 | QSize XdgShellClient::clientSize() const | ||
343 | { | 343 | { | ||
344 | const QRect boundingRect = subSurfaceTreeRect(surface()); | 344 | const QRect boundingRect = subSurfaceTreeRect(surface()); | ||
345 | return m_windowGeometry.size().boundedTo(boundingRect.size()); | 345 | return m_windowGeometry.size().boundedTo(boundingRect.size()); | ||
346 | } | 346 | } | ||
347 | 347 | | |||
348 | QSize XdgShellClient::minSize() const | ||||
349 | { | ||||
350 | if (m_xdgShellToplevel) { | ||||
351 | return rules()->checkMinSize(m_xdgShellToplevel->minimumSize()); | ||||
352 | } | ||||
353 | return QSize(0, 0); | ||||
354 | } | ||||
355 | | ||||
356 | QSize XdgShellClient::maxSize() const | ||||
357 | { | ||||
358 | if (m_xdgShellToplevel) { | ||||
359 | return rules()->checkMaxSize(m_xdgShellToplevel->maximumSize()); | ||||
360 | } | ||||
361 | return QSize(INT_MAX, INT_MAX); | ||||
362 | } | ||||
363 | | ||||
348 | void XdgShellClient::debug(QDebug &stream) const | 364 | void XdgShellClient::debug(QDebug &stream) const | ||
349 | { | 365 | { | ||
350 | stream.nospace(); | 366 | stream.nospace(); | ||
351 | stream << "\'XdgShellClient:" << surface() << ";WMCLASS:" << resourceClass() << ":" | 367 | stream << "\'XdgShellClient:" << surface() << ";WMCLASS:" << resourceClass() << ":" | ||
352 | << resourceName() << ";Caption:" << caption() << "\'"; | 368 | << resourceName() << ";Caption:" << caption() << "\'"; | ||
353 | } | 369 | } | ||
354 | 370 | | |||
355 | bool XdgShellClient::belongsToDesktop() const | 371 | bool XdgShellClient::belongsToDesktop() const | ||
▲ Show 20 Lines • Show All 1704 Lines • Show Last 20 Lines |