Package: gtk

Accessor gtk:widget-focus-on-click

Lambda List

gtk:widget-focus-on-click (object)

Syntax

(gtk:widget-focus-on-click object) => setting
(setf (gtk:widget-focus-on-click object) setting)

Arguments

object -- a gtk:widget object
setting -- a boolean whether the widget should grab focus

Details

The accessor for the focus-on-click slot of the gtk:widget class gets or sets whether the widget should grab focus when it is clicked with the mouse.

Making mouse clicks not grab focus is useful in places like toolbars where you do not want the keyboard focus removed from the main area of the application.
 

See also

2025-08-14