Changeset View
Changeset View
Standalone View
Standalone View
shell_client.cpp
Show First 20 Lines • Show All 504 Lines • ▼ Show 20 Line(s) | |||||
505 | 505 | | |||
506 | void ShellClient::setInternalFramebufferObject(const QSharedPointer<QOpenGLFramebufferObject> &fbo) | 506 | void ShellClient::setInternalFramebufferObject(const QSharedPointer<QOpenGLFramebufferObject> &fbo) | ||
507 | { | 507 | { | ||
508 | if (fbo.isNull()) { | 508 | if (fbo.isNull()) { | ||
509 | unmap(); | 509 | unmap(); | ||
510 | return; | 510 | return; | ||
511 | } | 511 | } | ||
512 | 512 | | |||
513 | //Kwin currently scales internal windows to 1, so this is currently always correct | 513 | m_clientSize = fbo->size() / surface()->scale(); | ||
514 | //when that changes, this needs adjusting | | |||
515 | m_clientSize = fbo->size(); | | |||
516 | markAsMapped(); | 514 | markAsMapped(); | ||
517 | doSetGeometry(QRect(geom.topLeft(), m_clientSize)); | 515 | doSetGeometry(QRect(geom.topLeft(), m_clientSize)); | ||
518 | Toplevel::setInternalFramebufferObject(fbo); | 516 | Toplevel::setInternalFramebufferObject(fbo); | ||
519 | Toplevel::addDamage(QRegion(0, 0, width(), height())); | 517 | Toplevel::addDamage(QRegion(0, 0, width(), height())); | ||
520 | } | 518 | } | ||
521 | 519 | | |||
522 | void ShellClient::markAsMapped() | 520 | void ShellClient::markAsMapped() | ||
523 | { | 521 | { | ||
▲ Show 20 Lines • Show All 1474 Lines • Show Last 20 Lines |