Method

GdkDeviceset_mode

Declaration [src]

gboolean
gdk_device_set_mode (
  GdkDevice* device,
  GdkInputMode mode
)

Description [src]

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

mode

Type: GdkInputMode

The input mode.

Return value

Type: gboolean

TRUE if the mode was successfully changed.