Determines the screen that contains the pointer and centers the window on it.
If it failes to determine the current pointer position, window is centered on the default screen.
This function only works properly if you call it before realizing the window and you haven't set a fixed window position using move.
See also: gdk_screen_get_active.
| window |
the Window to center. |