Initialize mode_x and mode_y. Not really necessary, but the compiler complained.
Initialize mode_x and mode_y. Not really necessary, but the compiler
complained.

Added explicit check for mode equals 0 on button release and break
immedietely. Easier to read.

Added some comments.

tkln/mcwm,tkln/mcwm,bbidulock/mcwm,bbidulock/mcwm