fix default cursor tag pos.

This commit is contained in:
Miroslav Šedivý 2022-10-22 16:37:44 +02:00
parent 9fc2083e76
commit 9307fbea97

View File

@ -561,8 +561,8 @@
// draw cursor tag // draw cursor tag
const cursorTag = this.sessions[this.hostId]?.profile.name || '' const cursorTag = this.sessions[this.hostId]?.profile.name || ''
if (cursorTag) { if (cursorTag) {
const x = this.cursorImage.width x += this.cursorImage.width
const y = this.cursorImage.height y += this.cursorImage.height
this._ctx.font = '14px Arial, sans-serif' this._ctx.font = '14px Arial, sans-serif'
this._ctx.textBaseline = 'top' this._ctx.textBaseline = 'top'