libkeybinder/bind.c
static gboolean
modifiers_equal (GdkModifierType mf1, GdkModifierType mf2)
{
	GdkModifierType ignored = 0;

	/* Accept MOD1 + META as MOD1 */
	if (mf1 & mf2 & GDK_MOD1_MASK) {
		ignored |= GDK_META_MASK;
	}
	/* Accept SUPER + HYPER as SUPER */
	if (mf1 & mf2 & GDK_SUPER_MASK) {
		ignored |= GDK_HYPER_MASK;
	}
	if ((mf1 & ~ignored) == (mf2 & ~ignored)) {
		return TRUE;
	}
	return FALSE;
}
/* Compare modifier set equality,
 * while accepting overloaded modifiers (MOD1 and META together)
 */
Compare modifier set equality,
while accepting overloaded modifiers (MOD1 and META together)
Compare modifier set equality while accepting overloaded modifiers ( MOD1 and META together )
static gboolean
modifiers_equal (GdkModifierType mf1, GdkModifierType mf2)
{
	GdkModifierType ignored = 0;
	if (mf1 & mf2 & GDK_MOD1_MASK) {
		ignored |= GDK_META_MASK;
	}
	if (mf1 & mf2 & GDK_SUPER_MASK) {
		ignored |= GDK_HYPER_MASK;
	}
	if ((mf1 & ~ignored) == (mf2 & ~ignored)) {
		return TRUE;
	}
	return FALSE;
}
static gboolean modifiers_equal ( GdkModifierType mf1 , GdkModifierType mf2 ) { GdkModifierType ignored = 0 ; if ( mf1 & mf2 & GDK_MOD1_MASK ) { ignored |= GDK_META_MASK ; } if ( mf1 & mf2 & GDK_SUPER_MASK ) { ignored |= GDK_HYPER_MASK ; } if ( ( mf1 & ~ ignored ) == ( mf2 & ~ ignored ) ) { return TRUE ; } return FALSE ; }
Compare modifier set equality,
 while accepting overloaded modifiers (MOD1 and META together)
Compare modifier set equality while accepting overloaded modifiers ( MOD1 and META together )
/* Accept MOD1 + META as MOD1 */ /* Accept SUPER + HYPER as SUPER */