|
|
@@ -40,6 +40,7 @@ namespace Avalonia.FreeDesktop.DBusIme
|
|
|
private PixelRect? _lastReportedRect;
|
|
|
private double _scaling = 1;
|
|
|
private PixelPoint _windowPosition;
|
|
|
+ private ITextInputMethodClient? _client;
|
|
|
|
|
|
protected bool IsConnected => _currentName != null;
|
|
|
|
|
|
@@ -51,6 +52,10 @@ namespace Avalonia.FreeDesktop.DBusIme
|
|
|
Watch();
|
|
|
}
|
|
|
|
|
|
+ public ITextInputMethodClient Client => _client;
|
|
|
+
|
|
|
+ public bool IsActive => _client != null;
|
|
|
+
|
|
|
async void Watch()
|
|
|
{
|
|
|
foreach (var name in _knownNames)
|
|
|
@@ -202,7 +207,7 @@ namespace Avalonia.FreeDesktop.DBusIme
|
|
|
|
|
|
void ITextInputMethodImpl.SetClient(ITextInputMethodClient? client)
|
|
|
{
|
|
|
- _controlActive = client is { };
|
|
|
+ _client = client;
|
|
|
UpdateActive();
|
|
|
}
|
|
|
|