|  |  | @ -593,12 +593,23 @@ static GLFWbool initExtensions(void) | 
			
		
	
		
		
			
				
					
					|  |  |  |                        RROutputChangeNotifyMask); |  |  |  |                        RROutputChangeNotifyMask); | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (XineramaQueryExtension(_glfw.x11.display, |  |  |  |     _glfw.x11.xinerama.handle = dlopen("libXinerama.so.1", RTLD_LAZY | RTLD_GLOBAL); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                &_glfw.x11.xinerama.major, |  |  |  |     if (_glfw.x11.xinerama.handle) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                &_glfw.x11.xinerama.minor)) |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     { |  |  |  |     { | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (XineramaIsActive(_glfw.x11.display)) |  |  |  |         _glfw.x11.xinerama.IsActive = (PFN_XineramaIsActive) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             _glfw.x11.xinerama.available = GLFW_TRUE; |  |  |  |             dlsym(_glfw.x11.xinerama.handle, "XineramaIsActive"); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         _glfw.x11.xinerama.QueryExtension = (PFN_XineramaQueryExtension) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             dlsym(_glfw.x11.xinerama.handle, "XineramaQueryExtension"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         _glfw.x11.xinerama.QueryScreens = (PFN_XineramaQueryScreens) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             dlsym(_glfw.x11.xinerama.handle, "XineramaQueryScreens"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (XineramaQueryExtension(_glfw.x11.display, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                    &_glfw.x11.xinerama.major, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                                    &_glfw.x11.xinerama.minor)) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             if (XineramaIsActive(_glfw.x11.display)) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 _glfw.x11.xinerama.available = GLFW_TRUE; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     _glfw.x11.xkb.major = 1; |  |  |  |     _glfw.x11.xkb.major = 1; | 
			
		
	
	
		
		
			
				
					|  |  | @ -883,6 +894,12 @@ void _glfwPlatformTerminate(void) | 
			
		
	
		
		
			
				
					
					|  |  |  |         _glfw.x11.randr.handle = NULL; |  |  |  |         _glfw.x11.randr.handle = NULL; | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     if (_glfw.x11.xinerama.handle) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         dlclose(_glfw.x11.xinerama.handle); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         _glfw.x11.xinerama.handle = NULL; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (_glfw.x11.helperWindowHandle) |  |  |  |     if (_glfw.x11.helperWindowHandle) | 
			
		
	
		
		
			
				
					
					|  |  |  |     { |  |  |  |     { | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (XGetSelectionOwner(_glfw.x11.display, _glfw.x11.CLIPBOARD) == |  |  |  |         if (XGetSelectionOwner(_glfw.x11.display, _glfw.x11.CLIPBOARD) == | 
			
		
	
	
		
		
			
				
					|  |  | 
 |