+ GdkScreen * const screen = gdk_screen_get_default();
+
+ m_num = gdk_screen_get_n_monitors(screen);
+ m_screens = new ScreenInfo[m_num];
+ for ( int i = 0; i < m_num; i++ )
+ {
+ GdkRectangle rect;
+ gdk_screen_get_monitor_geometry(screen, i, &rect);
+ m_screens[i].x_org = rect.x;
+ m_screens[i].y_org = rect.y;
+ m_screens[i].width = rect.width;
+ m_screens[i].height = rect.height;
+ }