| 435 | } |
| 436 | |
| 437 | void InternalWindow::commitGeometry(const QRectF &rect) |
| 438 | { |
| 439 | // The client geometry and the buffer geometry are the same. |
| 440 | const QRectF oldClientGeometry = m_clientGeometry; |
| 441 | const QRectF oldFrameGeometry = m_frameGeometry; |
| 442 | const Output *oldOutput = m_output; |
| 443 | |
| 444 | Q_EMIT frameGeometryAboutToChange(); |
| 445 | |
| 446 | m_clientGeometry = frameRectToClientRect(rect); |
| 447 | m_frameGeometry = rect; |
| 448 | m_bufferGeometry = m_clientGeometry; |
| 449 | |
| 450 | if (oldClientGeometry == m_clientGeometry && oldFrameGeometry == m_frameGeometry) { |
| 451 | return; |
| 452 | } |
| 453 | |
| 454 | m_output = workspace()->outputAt(rect.center()); |
| 455 | syncGeometryToInternalWindow(); |
| 456 | |
| 457 | if (oldClientGeometry != m_clientGeometry) { |
| 458 | Q_EMIT bufferGeometryChanged(oldClientGeometry); |
| 459 | Q_EMIT clientGeometryChanged(oldClientGeometry); |
| 460 | } |
| 461 | if (oldFrameGeometry != m_frameGeometry) { |
| 462 | Q_EMIT frameGeometryChanged(oldFrameGeometry); |
| 463 | } |
| 464 | if (oldOutput != m_output) { |
| 465 | Q_EMIT outputChanged(); |
| 466 | } |
| 467 | } |
| 468 | |
| 469 | void InternalWindow::setCaption(const QString &caption) |
| 470 | { |