mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-11-03 09:01:45 -05:00 
			
		
		
		
	Merge pull request #2 from guidocella/handleUnplug
Move sgeom assignment
This commit is contained in:
		
						commit
						96d9f010de
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		
							
								
								
									
										3
									
								
								dwl.c
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								dwl.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -695,7 +695,6 @@ cleanupmon(struct wl_listener *listener, void *data)
 | 
			
		|||
	wl_list_remove(&m->link);
 | 
			
		||||
	wlr_output_layout_remove(output_layout, m->wlr_output);
 | 
			
		||||
 | 
			
		||||
	sgeom = *wlr_output_layout_get_box(output_layout, NULL);
 | 
			
		||||
	updatemons();
 | 
			
		||||
 | 
			
		||||
	wl_list_for_each(newmon, &mons, link) {
 | 
			
		||||
| 
						 | 
				
			
			@ -831,7 +830,6 @@ createmon(struct wl_listener *listener, void *data)
 | 
			
		|||
	 * output (such as DPI, scale factor, manufacturer, etc).
 | 
			
		||||
	 */
 | 
			
		||||
	wlr_output_layout_add_auto(output_layout, wlr_output);
 | 
			
		||||
	sgeom = *wlr_output_layout_get_box(output_layout, NULL);
 | 
			
		||||
 | 
			
		||||
	for (size_t i = 0; i < nlayers; ++i)
 | 
			
		||||
		wl_list_init(&m->layers[i]);
 | 
			
		||||
| 
						 | 
				
			
			@ -2151,6 +2149,7 @@ unmapnotify(struct wl_listener *listener, void *data)
 | 
			
		|||
void
 | 
			
		||||
updatemons()
 | 
			
		||||
{
 | 
			
		||||
	sgeom = *wlr_output_layout_get_box(output_layout, NULL);
 | 
			
		||||
	Monitor *m;
 | 
			
		||||
	wl_list_for_each(m, &mons, link) {
 | 
			
		||||
		/* Get the effective monitor geometry to use for surfaces */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue