Mir

Comment 2 for bug 1311699

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: MirMotionEvent::action is not defined by the API

Part of the problem description is incorrect. It does have a local definition: MirMotionAction

And a while ago "action" was defined as a MirMotionAction. However for compatibility reasons only racarr changed it to an int. You can still use MirMotionAction so long as you remember the compatibility hack like in examples/demo-shell/window_manager.cpp:

         // FIXME: https://bugs.launchpad.net/mir/+bug/1197108
        MirMotionAction action = static_cast<MirMotionAction>(event.motion.action & ~0xff00);

But obviously we need to retire such hacks. So it's a bug.