replace (line #475?): gdk_drawable_get_size(root, &width, &height);
with the following: GdkRectangle my_rect; display = gdk_display_get_default(); screen = gdk_display_get_default_screen(display); gdk_screen_get_monitor_geometry(screen,0,&my_rect); width = my_rect.width; height = my_rect.height;
replace (line #475?): get_size( root, &width, &height);
gdk_drawable_
with the following: get_default( ); get_default_ screen( display) ; get_monitor_ geometry( screen, 0,&my_rect) ;
GdkRectangle my_rect;
display = gdk_display_
screen = gdk_display_
gdk_screen_
width = my_rect.width;
height = my_rect.height;