Remove hard-coded zwlr_layer_shell_v1 interface name
This makes code more neater.
This commit is contained in:
		
							parent
							
								
									95d5c5bea8
								
							
						
					
					
						commit
						834551f6b7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -35,7 +35,7 @@ void QWaylandLayerShellIntegration::registryLayer(void *data, struct wl_registry
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    QWaylandLayerShellIntegration *shell = static_cast<QWaylandLayerShellIntegration *>(data);
 | 
					    QWaylandLayerShellIntegration *shell = static_cast<QWaylandLayerShellIntegration *>(data);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (interface == QStringLiteral("zwlr_layer_shell_v1"))
 | 
					    if (interface == zwlr_layer_shell_v1_interface.name)
 | 
				
			||||||
        shell->m_layerShell = new QWaylandLayerShell(new QtWayland::zwlr_layer_shell_v1(registry, id, version));
 | 
					        shell->m_layerShell = new QWaylandLayerShell(new QtWayland::zwlr_layer_shell_v1(registry, id, version));
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue