__changedGeometry = false;
}
- std::shared_ptr<IDSBuffer> buffer = waylandSurfaceCommitInfo->getBuffer();
- if (buffer) {
- // TODO: set the size of window with the size of commit information
- // It could be changed by DSWindowShell policy later..
- std::shared_ptr<stSize> bufferSize = buffer->getSize();
- __committedW = bufferSize->w;
- __committedH = bufferSize->h;
-
-#if 0 // temporary code - we have to use policy to decide window's size.
- if ((__committedW != __w) ||
- (__committedH != __h))
- {
- DSLOG_ERR("DSWindow", "Committed size (%d,%d) is not same to requested size(%d,%d)", bufferSize->w, bufferSize->h, __w, __h);
- return;
- }
-#endif
+ if (waylandSurfaceCommitInfo->bufferChanged()) {
+ std::shared_ptr<IDSBuffer> buffer = waylandSurfaceCommitInfo->getBuffer();
// emit a signal of the buffer changed
pub->__bufferChangedSignal.emit(buffer);