Fixed automatic layout restore
This commit is contained in:
		@@ -292,9 +292,10 @@ function module.create(data)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        local function cleanup()
 | 
					        local function cleanup()
 | 
				
			||||||
            infobox.visible = false
 | 
					            infobox.visible = false
 | 
				
			||||||
            if prev_layout ~= nil then
 | 
					            if prev_layout ~= nil and (not to_apply) then
 | 
				
			||||||
                awful.layout.set(prev_layout, tag)
 | 
					                awful.layout.set(prev_layout, tag)
 | 
				
			||||||
            end
 | 
					            end
 | 
				
			||||||
 | 
					            prev_layout = nil
 | 
				
			||||||
        end
 | 
					        end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        local function draw_info(context, cr, width, height)
 | 
					        local function draw_info(context, cr, width, height)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user