Changeset View
Changeset View
Standalone View
Standalone View
internal_client.cpp
Show First 20 Lines • Show All 202 Lines • ▼ Show 20 Line(s) | 200 | { | |||
---|---|---|---|---|---|
203 | } | 203 | } | ||
204 | } | 204 | } | ||
205 | 205 | | |||
206 | bool InternalClient::isCloseable() const | 206 | bool InternalClient::isCloseable() const | ||
207 | { | 207 | { | ||
208 | return true; | 208 | return true; | ||
209 | } | 209 | } | ||
210 | 210 | | |||
211 | bool InternalClient::isMaximizable() const | | |||
212 | { | | |||
213 | return false; | | |||
214 | } | | |||
215 | | ||||
216 | bool InternalClient::isMovable() const | 211 | bool InternalClient::isMovable() const | ||
217 | { | 212 | { | ||
218 | return true; | 213 | return true; | ||
219 | } | 214 | } | ||
220 | 215 | | |||
221 | bool InternalClient::isMovableAcrossScreens() const | 216 | bool InternalClient::isMovableAcrossScreens() const | ||
222 | { | 217 | { | ||
223 | return true; | 218 | return true; | ||
▲ Show 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 263 | { | |||
272 | return false; | 267 | return false; | ||
273 | } | 268 | } | ||
274 | 269 | | |||
275 | quint32 InternalClient::windowId() const | 270 | quint32 InternalClient::windowId() const | ||
276 | { | 271 | { | ||
277 | return m_windowId; | 272 | return m_windowId; | ||
278 | } | 273 | } | ||
279 | 274 | | |||
280 | MaximizeMode InternalClient::maximizeMode() const | | |||
281 | { | | |||
282 | return MaximizeRestore; | | |||
283 | } | | |||
284 | | ||||
285 | QRect InternalClient::geometryRestore() const | | |||
286 | { | | |||
287 | return m_maximizeRestoreGeometry; | | |||
288 | } | | |||
289 | | ||||
290 | bool InternalClient::isShown(bool shaded_is_shown) const | 275 | bool InternalClient::isShown(bool shaded_is_shown) const | ||
291 | { | 276 | { | ||
292 | Q_UNUSED(shaded_is_shown) | 277 | Q_UNUSED(shaded_is_shown) | ||
293 | 278 | | |||
294 | return readyForPainting(); | 279 | return readyForPainting(); | ||
295 | } | 280 | } | ||
296 | 281 | | |||
297 | bool InternalClient::isHiddenInternal() const | 282 | bool InternalClient::isHiddenInternal() const | ||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 310 | { | |||
350 | 335 | | |||
351 | if (m_clientSize == newClientGeometry.size()) { | 336 | if (m_clientSize == newClientGeometry.size()) { | ||
352 | commitGeometry(rect); | 337 | commitGeometry(rect); | ||
353 | } else { | 338 | } else { | ||
354 | requestGeometry(rect); | 339 | requestGeometry(rect); | ||
355 | } | 340 | } | ||
356 | } | 341 | } | ||
357 | 342 | | |||
358 | void InternalClient::setGeometryRestore(const QRect &rect) | | |||
359 | { | | |||
360 | m_maximizeRestoreGeometry = rect; | | |||
361 | } | | |||
362 | | ||||
363 | bool InternalClient::supportsWindowRules() const | 343 | bool InternalClient::supportsWindowRules() const | ||
364 | { | 344 | { | ||
365 | return false; | 345 | return false; | ||
366 | } | 346 | } | ||
367 | 347 | | |||
368 | AbstractClient *InternalClient::findModal(bool allow_itself) | 348 | AbstractClient *InternalClient::findModal(bool allow_itself) | ||
369 | { | 349 | { | ||
370 | Q_UNUSED(allow_itself) | 350 | Q_UNUSED(allow_itself) | ||
▲ Show 20 Lines • Show All 130 Lines • ▼ Show 20 Line(s) | |||||
501 | 481 | | |||
502 | bool InternalClient::belongsToSameApplication(const AbstractClient *other, SameApplicationChecks checks) const | 482 | bool InternalClient::belongsToSameApplication(const AbstractClient *other, SameApplicationChecks checks) const | ||
503 | { | 483 | { | ||
504 | Q_UNUSED(checks) | 484 | Q_UNUSED(checks) | ||
505 | 485 | | |||
506 | return qobject_cast<const InternalClient *>(other) != nullptr; | 486 | return qobject_cast<const InternalClient *>(other) != nullptr; | ||
507 | } | 487 | } | ||
508 | 488 | | |||
509 | void InternalClient::changeMaximize(bool horizontal, bool vertical, bool adjust) | | |||
510 | { | | |||
511 | Q_UNUSED(horizontal) | | |||
512 | Q_UNUSED(vertical) | | |||
513 | Q_UNUSED(adjust) | | |||
514 | | ||||
515 | // Internal clients are not maximizable. | | |||
516 | } | | |||
517 | | ||||
518 | void InternalClient::destroyDecoration() | 489 | void InternalClient::destroyDecoration() | ||
519 | { | 490 | { | ||
520 | if (!isDecorated()) { | 491 | if (!isDecorated()) { | ||
521 | return; | 492 | return; | ||
522 | } | 493 | } | ||
523 | 494 | | |||
524 | const QRect clientGeometry = frameRectToClientRect(frameGeometry()); | 495 | const QRect clientGeometry = frameRectToClientRect(frameGeometry()); | ||
525 | AbstractClient::destroyDecoration(); | 496 | AbstractClient::destroyDecoration(); | ||
▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines |