mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 09:42:42 +01:00 
			
		
		
		
	#1591 river escape window and mode
This commit is contained in:
		@@ -103,7 +103,7 @@ void Mode::handle_mode(const char *mode) {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    label_.get_style_context()->add_class(mode);
 | 
					    label_.get_style_context()->add_class(mode);
 | 
				
			||||||
    label_.set_markup(fmt::format(format_, mode));
 | 
					    label_.set_markup(fmt::format(format_, Glib::Markup::escape_text(mode).raw()));
 | 
				
			||||||
    label_.show();
 | 
					    label_.show();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -106,7 +106,7 @@ void Window::handle_focused_view(const char *title) {
 | 
				
			|||||||
    label_.hide();  // hide empty labels or labels with empty format
 | 
					    label_.hide();  // hide empty labels or labels with empty format
 | 
				
			||||||
  } else {
 | 
					  } else {
 | 
				
			||||||
    label_.show();
 | 
					    label_.show();
 | 
				
			||||||
    label_.set_markup(fmt::format(format_, title));
 | 
					    label_.set_markup(fmt::format(format_, Glib::Markup::escape_text(title).raw()));
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  ALabel::update();
 | 
					  ALabel::update();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user