|  | @@ -432,8 +432,13 @@ int app( int argc, char** argv ) {
 | 
	
		
			
			| 432 | 432 |                  h = selection->m_height;
 | 
	
		
			
			| 433 | 433 |                  // Delete the rectangle, which will remove it from the screen.
 | 
	
		
			
			| 434 | 434 |                  delete selection;
 | 
	
		
			
			|  | 435 | +                // Make sure if no window was specifically specified, that we output the root window.
 | 
	
		
			
			|  | 436 | +                Window temp = window;
 | 
	
		
			
			|  | 437 | +                if ( temp == None ) {
 | 
	
		
			
			|  | 438 | +                    temp = xengine->m_root;
 | 
	
		
			
			|  | 439 | +                }
 | 
	
		
			
			| 435 | 440 |                  // Print the selection :)
 | 
	
		
			
			| 436 |  | -                printSelection( format, false, x, y, w, h, window );
 | 
	
		
			
			|  | 441 | +                printSelection( format, false, x, y, w, h, temp );
 | 
	
		
			
			| 437 | 442 |                  break;
 | 
	
		
			
			| 438 | 443 |              }
 | 
	
		
			
			| 439 | 444 |          }
 |