mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Add a way for control mode clients to subscribe to a format and be
notified of changes rather than having to poll. GitHub issue 2242.
This commit is contained in:
		@@ -1474,11 +1474,13 @@ server_client_check_pane_resize(struct window_pane *wp)
 | 
			
		||||
		 * Otherwise resize to the force size and start the timer.
 | 
			
		||||
		 */
 | 
			
		||||
		if (wp->flags & PANE_RESIZENOW) {
 | 
			
		||||
			log_debug("%s: resizing %%%u after forced resize", __func__, wp->id);
 | 
			
		||||
			log_debug("%s: resizing %%%u after forced resize",
 | 
			
		||||
			    __func__, wp->id);
 | 
			
		||||
			window_pane_send_resize(wp, 0);
 | 
			
		||||
			wp->flags &= ~(PANE_RESIZE|PANE_RESIZEFORCE|PANE_RESIZENOW);
 | 
			
		||||
		} else if (!evtimer_pending(&wp->force_timer, NULL)) {
 | 
			
		||||
			log_debug("%s: forcing resize of %%%u", __func__, wp->id);
 | 
			
		||||
			log_debug("%s: forcing resize of %%%u", __func__,
 | 
			
		||||
			    wp->id);
 | 
			
		||||
			window_pane_send_resize(wp, 1);
 | 
			
		||||
			server_client_start_force_timer(wp);
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user