| 
				
			 | 
			
			
				@@ -54,11 +54,6 @@ void current_utc_time(struct timespec *ts) { 
			 | 
		
	
		
			
			| 
				54
			 | 
			
				54
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				55
			 | 
			
				55
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				56
			 | 
			
				56
			 | 
			
			
				 int printSelection( std::string format, bool cancelled, int x, int y, int w, int h, int window ) { 
			 | 
		
	
		
			
			| 
				57
			 | 
			
				
			 | 
			
			
				-    //Impossible to select nothing 
			 | 
		
	
		
			
			| 
				58
			 | 
			
				
			 | 
			
			
				-    if (!cancelled) { 
			 | 
		
	
		
			
			| 
				59
			 | 
			
				
			 | 
			
			
				-        w += 1; 
			 | 
		
	
		
			
			| 
				60
			 | 
			
				
			 | 
			
			
				-        h += 1; 
			 | 
		
	
		
			
			| 
				61
			 | 
			
				
			 | 
			
			
				-    } 
			 | 
		
	
		
			
			| 
				62
			 | 
			
				57
			 | 
			
			
				     size_t pos = 0; 
			 | 
		
	
		
			
			| 
				63
			 | 
			
				58
			 | 
			
			
				     while ( ( pos = format.find( "%", pos ) ) != std::string::npos ) { 
			 | 
		
	
		
			
			| 
				64
			 | 
			
				59
			 | 
			
			
				         if ( pos + 1 > format.size() ) { 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -292,7 +287,7 @@ int app( int argc, char** argv ) { 
			 | 
		
	
		
			
			| 
				292
			 | 
			
				287
			 | 
			
			
				     cmdline_parser_free( &options ); 
			 | 
		
	
		
			
			| 
				293
			 | 
			
				288
			 | 
			
			
				 #ifndef OPENGL_ENABLED 
			 | 
		
	
		
			
			| 
				294
			 | 
			
				289
			 | 
			
			
				     if ( opengl || themeon || magenabled ) { 
			 | 
		
	
		
			
			| 
				295
			 | 
			
				
			 | 
			
			
				-        throw std::runtime_error( "Slop wasn't compiled with OpenGL support, so themes, magnifications, and shaders are disabled! Try compiling it with the CMAKE_OPENGL_ENABLED set to true." ); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				290
			 | 
			
			
				+        throw std::runtime_error( "Slop wasn't compiled with OpenGL support, so themes, magnifications, and shaders are disabled! Try compiling it with the CMAKE_OPENGL_SUPPORT set to true." ); 
			 | 
		
	
		
			
			| 
				296
			 | 
			
				291
			 | 
			
			
				     } 
			 | 
		
	
		
			
			| 
				297
			 | 
			
				292
			 | 
			
			
				 #else // OPENGL_ENABLED 
			 | 
		
	
		
			
			| 
				298
			 | 
			
				293
			 | 
			
			
				     if ( ( themeon || magenabled || shadergiven ) && !opengl ) { 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -511,7 +506,7 @@ int app( int argc, char** argv ) { 
			 | 
		
	
		
			
			| 
				511
			 | 
			
				506
			 | 
			
			
				                 int sx, sy, ex, ey; 
			 | 
		
	
		
			
			| 
				512
			 | 
			
				507
			 | 
			
			
				                 constrain( cx, cy, xengine->m_mousex, xengine->m_mousey, padding, minimumsize, maximumsize, &sx, &sy, &ex, &ey ); 
			 | 
		
	
		
			
			| 
				513
			 | 
			
				508
			 | 
			
			
				                 // Set the selection rectangle's dimensions to mouse movement. 
			 | 
		
	
		
			
			| 
				514
			 | 
			
				
			 | 
			
			
				-                selection->setGeo( sx + xoffset, sy + yoffset, ex-1, ey-1 ); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				509
			 | 
			
			
				+                selection->setGeo( sx + xoffset, sy + yoffset, ex, ey ); 
			 | 
		
	
		
			
			| 
				515
			 | 
			
				510
			 | 
			
			
				                 selection->update( deltatime ); 
			 | 
		
	
		
			
			| 
				516
			 | 
			
				511
			 | 
			
			
				                 break; 
			 | 
		
	
		
			
			| 
				517
			 | 
			
				512
			 | 
			
			
				             } 
			 |