mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		@@ -270,6 +270,8 @@ input_key_get_mouse(struct screen *s, struct mouse_event *m, u_int x, u_int y,
 | 
				
			|||||||
	/* If this pane is not in button or all mode, discard motion events. */
 | 
						/* If this pane is not in button or all mode, discard motion events. */
 | 
				
			||||||
	if (MOUSE_DRAG(m->b) && (s->mode & MOTION_MOUSE_MODES) == 0)
 | 
						if (MOUSE_DRAG(m->b) && (s->mode & MOTION_MOUSE_MODES) == 0)
 | 
				
			||||||
		return (0);
 | 
							return (0);
 | 
				
			||||||
 | 
						if ((s->mode & ALL_MOUSE_MODES) == 0)
 | 
				
			||||||
 | 
							return (0);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/*
 | 
						/*
 | 
				
			||||||
	 * If this event is a release event and not in all mode, discard it.
 | 
						 * If this event is a release event and not in all mode, discard it.
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								popup.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								popup.c
									
									
									
									
									
								
							@@ -200,9 +200,9 @@ popup_handle_drag(struct client *c, struct popup_data *pd,
 | 
				
			|||||||
		pd->dy = m->y - pd->py;
 | 
							pd->dy = m->y - pd->py;
 | 
				
			||||||
		server_redraw_client(c);
 | 
							server_redraw_client(c);
 | 
				
			||||||
	} else if (pd->dragging == SIZE) {
 | 
						} else if (pd->dragging == SIZE) {
 | 
				
			||||||
		if (m->x < pd->px + 2)
 | 
							if (m->x < pd->px + 3)
 | 
				
			||||||
			return;
 | 
								return;
 | 
				
			||||||
		if (m->y < pd->py + 2)
 | 
							if (m->y < pd->py + 3)
 | 
				
			||||||
			return;
 | 
								return;
 | 
				
			||||||
		pd->sx = m->x - pd->px;
 | 
							pd->sx = m->x - pd->px;
 | 
				
			||||||
		pd->sy = m->y - pd->py;
 | 
							pd->sy = m->y - pd->py;
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								screen.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								screen.c
									
									
									
									
									
								
							@@ -535,6 +535,7 @@ screen_alternate_on(struct screen *s, struct grid_cell *gc, int cursor)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	grid_view_clear(s->grid, 0, 0, sx, sy, 8);
 | 
						grid_view_clear(s->grid, 0, 0, sx, sy, 8);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						s->saved_flags = s->grid->flags;
 | 
				
			||||||
	s->grid->flags &= ~GRID_HISTORY;
 | 
						s->grid->flags &= ~GRID_HISTORY;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -578,7 +579,8 @@ screen_alternate_off(struct screen *s, struct grid_cell *gc, int cursor)
 | 
				
			|||||||
	 * Turn history back on (so resize can use it) and then resize back to
 | 
						 * Turn history back on (so resize can use it) and then resize back to
 | 
				
			||||||
	 * the current size.
 | 
						 * the current size.
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	s->grid->flags |= GRID_HISTORY;
 | 
						if (s->saved_flags & GRID_HISTORY)
 | 
				
			||||||
 | 
							s->grid->flags |= GRID_HISTORY;
 | 
				
			||||||
	if (sy > s->saved_grid->sy || sx != s->saved_grid->sx)
 | 
						if (sy > s->saved_grid->sy || sx != s->saved_grid->sx)
 | 
				
			||||||
		screen_resize(s, sx, sy, 1);
 | 
							screen_resize(s, sx, sy, 1);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user