Commit d25db243 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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.
parent bffda09d
......@@ -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] {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment