mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	src/layers.c: send fractional scale before map
This commit is contained in:
		
							parent
							
								
									c4f683c70d
								
							
						
					
					
						commit
						8ba14891fa
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -12,6 +12,7 @@
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include <strings.h>
 | 
					#include <strings.h>
 | 
				
			||||||
#include <wayland-server.h>
 | 
					#include <wayland-server.h>
 | 
				
			||||||
 | 
					#include <wlr/types/wlr_fractional_scale_v1.h>
 | 
				
			||||||
#include <wlr/types/wlr_layer_shell_v1.h>
 | 
					#include <wlr/types/wlr_layer_shell_v1.h>
 | 
				
			||||||
#include <wlr/util/log.h>
 | 
					#include <wlr/util/log.h>
 | 
				
			||||||
#include "common/macros.h"
 | 
					#include "common/macros.h"
 | 
				
			||||||
| 
						 | 
					@ -552,6 +553,9 @@ handle_new_layer_surface(struct wl_listener *listener, void *data)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct output *output = layer_surface->output->data;
 | 
						struct output *output = layer_surface->output->data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						wlr_fractional_scale_v1_notify_scale(layer_surface->surface,
 | 
				
			||||||
 | 
							output->wlr_output->scale);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct wlr_scene_tree *selected_layer =
 | 
						struct wlr_scene_tree *selected_layer =
 | 
				
			||||||
		output->layer_tree[layer_surface->current.layer];
 | 
							output->layer_tree[layer_surface->current.layer];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue