## Xfce Gtk+ extensions Xfce Gtk+ extensions — Additional Gtk+ related functions. |

## Synopsis

    #include <libxfcegui4/libxfcegui4.h>

    void                xfce_gtk_window_center_on_monitor   (GtkWindow *window,
                                                             GdkScreen *screen,
                                                             gint monitor);
    void                xfce_gtk_window_center_on_monitor_with_pointer
                                                            (GtkWindow *window);

## Description

## Details

### xfce_gtk_window_center_on_monitor ()

    void                xfce_gtk_window_center_on_monitor   (GtkWindow *window,
                                                             GdkScreen *screen,
                                                             gint monitor);

Centers `window` on `monitor` of `screen`. `monitor` has to reference a valid monitor of `screen`.

`window` : | The Gtk window to center.
`screen` : | The screen on which the `window` should be centered.
`monitor` : | The monitor of the `screen` on which `window` should be centered.

Since 4.2

### xfce_gtk_window_center_on_monitor_with_pointer ()

    void                xfce_gtk_window_center_on_monitor_with_pointer
                                                            (GtkWindow *window);

Determines the monitor that contains the pointer and centers the `window` on it. If it failes to determine the current pointer position, `window` is centered on the first monitor of the default screen on the default display.

`window` : | The Gtk window to center.

## See Also

Gtk+ reference manual