Handle modifiers in MotionNotify events, too. This fixes bug #1227920