From 9b542c131e4aee417c6e1d06557621cf9d216f2c Mon Sep 17 00:00:00 2001 From: Fabian Winter <5821180+fdw@users.noreply.github.com> Date: Sun, 6 Jun 2021 10:08:33 +0200 Subject: [PATCH] Try new way of typing Maybe this is better? Issue: #15 --- src/rofi_rbw/typer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rofi_rbw/typer.py b/src/rofi_rbw/typer.py index 82a4598..78698c7 100644 --- a/src/rofi_rbw/typer.py +++ b/src/rofi_rbw/typer.py @@ -50,10 +50,11 @@ def get_active_window(self) -> str: def type_characters(self, characters: str, active_window: str) -> None: run([ 'xdotool', + 'windowactivate', + '--sync', + active_window, 'type', '--clearmodifiers', - '--window', - active_window, characters ])