Function begin_move

Source
pub fn begin_move(button: MouseButton)
Expand description

Begins an interactive window move.

This will start moving the window under the pointer until button is released.

button should be the mouse button that is held at the time this function is called. Otherwise, the move will not start. This is intended for use in tandem with a mousebind.

ยงExamples

input::mousebind(Mod::SUPER, MouseButton::Left)
    .on_press(|| window::begin_move(MouseButton::Left));