mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Use wlc_point instead of deprecated wlc_origin
Struct was renamed in wlc, use the new name.
This commit is contained in:
		
							parent
							
								
									76a3868ce8
								
							
						
					
					
						commit
						3658777e47
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -92,16 +92,16 @@ static void handle_output_pre_render(wlc_handle output) {
 | 
			
		|||
			};
 | 
			
		||||
			switch (desktop_shell.panel_position) {
 | 
			
		||||
			case DESKTOP_SHELL_PANEL_POSITION_TOP:
 | 
			
		||||
				geo.origin = (struct wlc_origin){ 0, 0 };
 | 
			
		||||
				geo.origin = (struct wlc_point){ 0, 0 };
 | 
			
		||||
				break;
 | 
			
		||||
			case DESKTOP_SHELL_PANEL_POSITION_BOTTOM:
 | 
			
		||||
				geo.origin = (struct wlc_origin){ 0, resolution.h - size.h };
 | 
			
		||||
				geo.origin = (struct wlc_point){ 0, resolution.h - size.h };
 | 
			
		||||
				break;
 | 
			
		||||
			case DESKTOP_SHELL_PANEL_POSITION_LEFT:
 | 
			
		||||
				geo.origin = (struct wlc_origin){ 0, 0 };
 | 
			
		||||
				geo.origin = (struct wlc_point){ 0, 0 };
 | 
			
		||||
				break;
 | 
			
		||||
			case DESKTOP_SHELL_PANEL_POSITION_RIGHT:
 | 
			
		||||
				geo.origin = (struct wlc_origin){ resolution.w - size.w, 0 };
 | 
			
		||||
				geo.origin = (struct wlc_point){ resolution.w - size.w, 0 };
 | 
			
		||||
				break;
 | 
			
		||||
			}
 | 
			
		||||
			wlc_surface_render(config->surface, &geo);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue