Widget.setDeviceEnabled
void setDeviceEnabled(gdk.device.Device device, bool enabled)Enables or disables a #GdkDevice to interact with widget and all its children.
It does so by descending through the #GdkWindow hierarchy and enabling the same mask that is has for core events (i.e. the one that [gdk.window.Window.getEvents] returns).
Parameters
device | a #GdkDevice |
enabled | whether to enable the device |