mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	xdg-shell: drop wlr_xdg_toplevel_set_fullscreen_event
Instead, compositors can read relevant values from wlr_xdg_toplevel.requested.
This commit is contained in:
		
							parent
							
								
									fd3a2a0906
								
							
						
					
					
						commit
						34a71eae31
					
				
					 2 changed files with 2 additions and 20 deletions
				
			
		| 
						 | 
					@ -243,12 +243,6 @@ struct wlr_xdg_toplevel_resize_event {
 | 
				
			||||||
	uint32_t edges;
 | 
						uint32_t edges;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct wlr_xdg_toplevel_set_fullscreen_event {
 | 
					 | 
				
			||||||
	struct wlr_xdg_toplevel *toplevel;
 | 
					 | 
				
			||||||
	bool fullscreen;
 | 
					 | 
				
			||||||
	struct wlr_output *output;
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
struct wlr_xdg_toplevel_show_window_menu_event {
 | 
					struct wlr_xdg_toplevel_show_window_menu_event {
 | 
				
			||||||
	struct wlr_xdg_toplevel *toplevel;
 | 
						struct wlr_xdg_toplevel *toplevel;
 | 
				
			||||||
	struct wlr_seat_client *seat;
 | 
						struct wlr_seat_client *seat;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -366,13 +366,7 @@ static void xdg_toplevel_handle_set_fullscreen(struct wl_client *client,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	store_fullscreen_requested(toplevel, true, output);
 | 
						store_fullscreen_requested(toplevel, true, output);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct wlr_xdg_toplevel_set_fullscreen_event event = {
 | 
						wlr_signal_emit_safe(&toplevel->events.request_fullscreen, NULL);
 | 
				
			||||||
		.toplevel = toplevel,
 | 
					 | 
				
			||||||
		.fullscreen = true,
 | 
					 | 
				
			||||||
		.output = output,
 | 
					 | 
				
			||||||
	};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	wlr_signal_emit_safe(&toplevel->events.request_fullscreen, &event);
 | 
					 | 
				
			||||||
	wlr_xdg_surface_schedule_configure(toplevel->base);
 | 
						wlr_xdg_surface_schedule_configure(toplevel->base);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -383,13 +377,7 @@ static void xdg_toplevel_handle_unset_fullscreen(struct wl_client *client,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	store_fullscreen_requested(toplevel, false, NULL);
 | 
						store_fullscreen_requested(toplevel, false, NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct wlr_xdg_toplevel_set_fullscreen_event event = {
 | 
						wlr_signal_emit_safe(&toplevel->events.request_fullscreen, NULL);
 | 
				
			||||||
		.toplevel = toplevel,
 | 
					 | 
				
			||||||
		.fullscreen = false,
 | 
					 | 
				
			||||||
		.output = NULL,
 | 
					 | 
				
			||||||
	};
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	wlr_signal_emit_safe(&toplevel->events.request_fullscreen, &event);
 | 
					 | 
				
			||||||
	wlr_xdg_surface_schedule_configure(toplevel->base);
 | 
						wlr_xdg_surface_schedule_configure(toplevel->base);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue