Device.setMode

bool setMode(gdk.types.InputMode mode)

Sets a the mode of an input device. The mode controls if the device is active and whether the device’s range is mapped to the entire screen or to a single window.

Note

This is only meaningful for floating devices, master devices (and

slaves connected to these) drive the pointer cursor, which is not limited by the input mode.

Parameters

modethe input mode.

Returns

true if the mode was successfully changed.