You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hyprland/language: Fix commas in keyboard names and layouts
Commit 29917fb ("Fix hyprland/language events not working with keyboard
names with commas in them (#3224)") attempted to fix the problem, but
introduced the opposite problem.
The event data from Hyprland is "activelayout>>KEYBOARDNAME,LAYOUTNAME",
but both KEYBOARDNAME and LAYOUTNAME may contain embedded commas, so the
simple `find_first_of(',')` or `find_last_of(',')` solutions will break
things for different users.
This patch attempts to solve the problem by trying all combinations of
keyboardname and layoutname until one makes sense, either by matching
the keyboard name to the user-configured device name, or by matching the
layoutname to the list of valid layouts.
0 commit comments