mirror of
				https://github.com/Zedfrigg/ironbar.git
				synced 2025-11-03 23:11:54 +01:00 
			
		
		
		
	build: add focused and launcher feature flags
		
	This commit is contained in:
		
					parent
					
						
							
								e737177ab0
							
						
					
				
			
			
				commit
				
					
						ddf91b18cc
					
				
			
		
					 10 changed files with 76 additions and 15 deletions
				
			
		| 
						 | 
				
			
			@ -28,8 +28,10 @@ pub mod clipboard;
 | 
			
		|||
#[cfg(feature = "clock")]
 | 
			
		||||
pub mod clock;
 | 
			
		||||
pub mod custom;
 | 
			
		||||
#[cfg(feature = "focused")]
 | 
			
		||||
pub mod focused;
 | 
			
		||||
pub mod label;
 | 
			
		||||
#[cfg(feature = "launcher")]
 | 
			
		||||
pub mod launcher;
 | 
			
		||||
#[cfg(feature = "music")]
 | 
			
		||||
pub mod music;
 | 
			
		||||
| 
						 | 
				
			
			@ -68,6 +70,7 @@ pub enum ModuleUpdateEvent<T: Clone> {
 | 
			
		|||
    /// Force sets the popup open.
 | 
			
		||||
    /// Takes the button ID.
 | 
			
		||||
    OpenPopup(usize),
 | 
			
		||||
    #[cfg(feature = "launcher")]
 | 
			
		||||
    OpenPopupAt(WidgetGeometry),
 | 
			
		||||
    /// Force sets the popup closed.
 | 
			
		||||
    ClosePopup,
 | 
			
		||||
| 
						 | 
				
			
			@ -317,6 +320,7 @@ fn setup_receiver<TSend>(
 | 
			
		|||
                    has_popup_opened = true;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            #[cfg(feature = "launcher")]
 | 
			
		||||
            ModuleUpdateEvent::OpenPopupAt(geometry) => {
 | 
			
		||||
                debug!("Opening popup for {} [#{}]", name, id);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue