mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	view: add view_set_activated()
Call wlr_foreign_toplevel_handle_v1_set_activated() from it in support of issue #73
This commit is contained in:
		
							parent
							
								
									54d22a7129
								
							
						
					
					
						commit
						70144ac113
					
				
					 4 changed files with 38 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								src/view.c
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								src/view.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -4,6 +4,18 @@
 | 
			
		|||
#include "labwc.h"
 | 
			
		||||
#include "ssd.h"
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
view_set_activated(struct view *view, bool activated)
 | 
			
		||||
{
 | 
			
		||||
	if (view->impl->set_activated) {
 | 
			
		||||
		view->impl->set_activated(view, activated);
 | 
			
		||||
	}
 | 
			
		||||
	if (view->toplevel_handle) {
 | 
			
		||||
		wlr_foreign_toplevel_handle_v1_set_activated(
 | 
			
		||||
			view->toplevel_handle, activated);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
view_move_resize(struct view *view, struct wlr_box geo)
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue