Package: gtk

GEnum gtk:window-position

Declaration

(gobject:define-genum "GtkWindowPosition" window-position
  (:export t
   :type-initializer "gtk_window_position_get_type")
  (:none 0)
  (:center 1)
  (:mouse 2)
  (:center-always 3)
  (:center-on-parent 4))  

Values

:none
No influence is made on placement.
:center
Windows should be placed in the center of the screen.
:mouse
Windows should be placed at the current mouse position.
:center-always
Keep window centered as it changes size, etc.
:center-on-parent
Center the window on its transient parent. See the gtk:window-transient-for function.

Details

Window placement can be influenced using this enumeration. Note that using the :center-always value is almost always a bad idea. It will not necessarily work well with all window managers or on all windowing systems.
 

See also

2024-3-16