chiark / gitweb /
terminal/idev: don't remove consumed-mods from kbd-matches
[elogind.git] / src / libsystemd-terminal / idev.h
index ea79bb6ab6224a97350cdb8800a7eb8cf1350af4..c8c03f3d41be9937182fb184252f46e0f0fda544 100644 (file)
@@ -123,7 +123,7 @@ static inline bool idev_kbdmatch(idev_data_keyboard *kdata,
                 return false;
 
         real = kdata->mods & ~kdata->consumed_mods & significant;
-        if (real != (mods & ~kdata->consumed_mods))
+        if (real != mods)
                 return false;
 
         return !memcmp(syms, kdata->keysyms, n_syms * sizeof(*syms));