mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-11-03 09:01:45 -05:00 
			
		
		
		
	fix left border 'y' position
also add comment about border ordering
This commit is contained in:
		
							parent
							
								
									b97d9e1ce1
								
							
						
					
					
						commit
						4465dcb6da
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		
							
								
								
									
										3
									
								
								dwl.c
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								dwl.c
									
										
									
									
									
								
							| 
						 | 
					@ -92,7 +92,7 @@ typedef struct {
 | 
				
			||||||
	/* Must be first */
 | 
						/* Must be first */
 | 
				
			||||||
	unsigned int type; /* XDGShell or X11* */
 | 
						unsigned int type; /* XDGShell or X11* */
 | 
				
			||||||
	struct wlr_scene_node *scene;
 | 
						struct wlr_scene_node *scene;
 | 
				
			||||||
	struct wlr_scene_rect *border[4];
 | 
						struct wlr_scene_rect *border[4]; /* top, bottom, left, right */
 | 
				
			||||||
	struct wlr_scene_node *scene_surface;
 | 
						struct wlr_scene_node *scene_surface;
 | 
				
			||||||
	struct wl_list link;
 | 
						struct wl_list link;
 | 
				
			||||||
	struct wl_list flink;
 | 
						struct wl_list flink;
 | 
				
			||||||
| 
						 | 
					@ -1641,6 +1641,7 @@ resize(Client *c, int x, int y, int w, int h, int interact)
 | 
				
			||||||
	wlr_scene_rect_set_size(c->border[2], c->bw, c->geom.height - 2 * c->bw);
 | 
						wlr_scene_rect_set_size(c->border[2], c->bw, c->geom.height - 2 * c->bw);
 | 
				
			||||||
	wlr_scene_rect_set_size(c->border[3], c->bw, c->geom.height - 2 * c->bw);
 | 
						wlr_scene_rect_set_size(c->border[3], c->bw, c->geom.height - 2 * c->bw);
 | 
				
			||||||
	wlr_scene_node_set_position(&c->border[1]->node, 0, c->geom.height - c->bw);
 | 
						wlr_scene_node_set_position(&c->border[1]->node, 0, c->geom.height - c->bw);
 | 
				
			||||||
 | 
						wlr_scene_node_set_position(&c->border[2]->node, 0, c->bw);
 | 
				
			||||||
	wlr_scene_node_set_position(&c->border[3]->node, c->geom.width - c->bw, c->bw);
 | 
						wlr_scene_node_set_position(&c->border[3]->node, c->geom.width - c->bw, c->bw);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* wlroots makes this a no-op if size hasn't changed */
 | 
						/* wlroots makes this a no-op if size hasn't changed */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue