Wayland is not ready for gaming/streaming since it lacks a few features on obs (mainly the docks) and there is forced “vsync” on the games and you can’t have tearing unless the game is wayland native and you have a recent desktop environment version on your distro thag supports it. Also some other apps may be buggy but for general usage is pretty much ready i’d say.
isLogicGate is not used. Maybe you mean to place it in “isGate” in the stringAsGateLogic for loop’s if statement?