Device.setMode

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.

class Device
bool
setMode

Parameters

mode GdkInputMode

the input mode.

Return Value

Type: bool

TRUE if the mode was successfully changed.