Skip to content

window_manager: Escape special chars in window title regex

Escape special characters in the window title when building the regex so they're taken literal rather than having a special meaning in the regex.

This e.g. fixes matching the window title for a Qt Creator window with a title like "QtWidget.cxx (vcl/qt5 @ lo) [master] - libreoffice - Qt Creator" and thus makes highlighting the correct area work when clicking through the a11y hierarchy in Accerciser when using the KWinWindowManager on Wayland (enabled via export ACCERCISER_WINDOW_MANAGER=kwin).

Merge request reports