+ int left_w = 0, left_h = 0, right_w = 0;
+ int xin_screens = display_info.get_xinerama_screens();
+ if( xin_screens > 1 ) {
+ dual_head = 1;
+ int x, y, w, h;
+ for( int s=0; s<xin_screens; ++s ) {
+ if( display_info.xinerama_geometry(s, x, y, w, h) )
+ continue;
+ if( !y && !x ) {
+ left_w = w; left_h = h;
+ break;
+ }
+ }
+ if( left_w > 0 ) {
+ for( int s=0; s<xin_screens; ++s ) {
+ if( display_info.xinerama_geometry(s, x, y, w, h) )
+ continue;
+ if( !y && x == left_w ) {
+ right_w = w;
+ screens = 2;
+ break;
+ }
+ }
+ if( window_config == 1 ) {
+ root_x = left_w;
+ root_w = right_w;
+ }
+ else {
+ root_w = left_w;
+ root_h = left_h;
+ }
+ }
+ }