mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	
						commit
						cfe205b36f
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
					@ -726,13 +726,13 @@ void dispatch_cursor_button(struct sway_cursor *cursor,
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// Via mod+click
 | 
							// Via mod+click
 | 
				
			||||||
		struct sway_container *floater = cont;
 | 
					 | 
				
			||||||
		while (floater->parent->layout != L_FLOATING) {
 | 
					 | 
				
			||||||
			floater = floater->parent;
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
		uint32_t btn_resize = config->floating_mod_inverse ?
 | 
							uint32_t btn_resize = config->floating_mod_inverse ?
 | 
				
			||||||
			BTN_LEFT : BTN_RIGHT;
 | 
								BTN_LEFT : BTN_RIGHT;
 | 
				
			||||||
		if (button == btn_resize) {
 | 
							if (mod_pressed && button == btn_resize) {
 | 
				
			||||||
 | 
								struct sway_container *floater = cont;
 | 
				
			||||||
 | 
								while (floater->parent->layout != L_FLOATING) {
 | 
				
			||||||
 | 
									floater = floater->parent;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
			edge = 0;
 | 
								edge = 0;
 | 
				
			||||||
			edge |= cursor->cursor->x > floater->x + floater->width / 2 ?
 | 
								edge |= cursor->cursor->x > floater->x + floater->width / 2 ?
 | 
				
			||||||
				WLR_EDGE_RIGHT : WLR_EDGE_LEFT;
 | 
									WLR_EDGE_RIGHT : WLR_EDGE_LEFT;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue