By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

Fix button min-width

roundabout,
created on Monday, 11 August 2025, 12:43:41 (1754916221), received on Monday, 11 August 2025, 12:43:51 (1754916231)
Author identity: Vlad <vlad.muntoiu@gmail.com>

c75d511fc2fa56c327c7f47ed1a56c2b02e860b7

.gitignore

@@ -0,0 +1,2 @@

                                
                                
                                
                            
                                
                                    
                                        
                                        .venv/
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        .idea/
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

applets/wf-window-list/__init__.py

@@ -137,7 +137,7 @@ class WindowButtonLayoutManager(Gtk.LayoutManager):

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    if orientation == Gtk.Orientation.HORIZONTAL:
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                        min_width, nat_width, min_height, nat_height = child.measure(Gtk.Orientation.HORIZONTAL, for_size)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                    width = min(nat_width, self.options.max_width)
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                    width = self.options.max_width
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                        return min_width, width, min_height, nat_height
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    else:
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                        min_width, nat_width, min_height, nat_height = child.measure(Gtk.Orientation.VERTICAL, for_size)