Set focused text input surface before emitting focusedTextInputSurfaceChanged()
When the focusedTextInputSurfaceChanged() signal is emitted, it is expected that SeatInterface::focusedTextInputSurface() will return the new focused text input surface.
This commit is contained in:
parent
cff380962c
commit
feeafa93ed
1 changed files with 1 additions and 1 deletions
|
@ -1585,10 +1585,10 @@ void SeatInterface::setFocusedTextInputSurface(SurfaceInterface *surface)
|
|||
|
||||
if (d->focusedTextInputSurface != surface){
|
||||
d->textInputV2->d->sendLeave(serial, d->focusedTextInputSurface);
|
||||
d->focusedTextInputSurface = surface;
|
||||
emit focusedTextInputSurfaceChanged();
|
||||
}
|
||||
|
||||
d->focusedTextInputSurface = surface;
|
||||
if (d->focusedTextInputSurface) {
|
||||
d->focusedSurfaceDestroyConnection = connect(surface, &SurfaceInterface::aboutToBeDestroyed, this,
|
||||
[this] {
|
||||
|
|
Loading…
Reference in a new issue