Gtk.Widget.prototype.has_grab
function has_grab():Boolean {
// Gjs wrapper for gtk_widget_has_grab()
}Determines whether the widget is currently grabbing events, so it is the only widget receiving input events (keyboard and mouse).
See also Gtk.Widget.prototype.grab_add.
Since 2.18
- Returns
true if the widget is in the grab_widgets stack