mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	Force repaint after window title changes
When a window title changed dynamically (for example when running "cd" within an xfce4-terminal), the titlebar did not immediately update to show the new title. (The titlebar would update as soon as the mouse cursor moved.)
This commit is contained in:
		
							parent
							
								
									d50c2f2eac
								
							
						
					
					
						commit
						1bd26d259a
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -158,6 +158,7 @@ handle_set_title(struct wl_listener *listener, void *data)
 | 
				
			||||||
	struct view *view = wl_container_of(listener, view, set_title);
 | 
						struct view *view = wl_container_of(listener, view, set_title);
 | 
				
			||||||
	assert(view);
 | 
						assert(view);
 | 
				
			||||||
	view_update_title(view);
 | 
						view_update_title(view);
 | 
				
			||||||
 | 
						damage_all_outputs(view->server);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void
 | 
					static void
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -132,6 +132,7 @@ handle_set_title(struct wl_listener *listener, void *data)
 | 
				
			||||||
	struct view *view = wl_container_of(listener, view, set_title);
 | 
						struct view *view = wl_container_of(listener, view, set_title);
 | 
				
			||||||
	assert(view);
 | 
						assert(view);
 | 
				
			||||||
	view_update_title(view);
 | 
						view_update_title(view);
 | 
				
			||||||
 | 
						damage_all_outputs(view->server);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void
 | 
					static void
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue