mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-16 14:21:03 +02:00
Merge pull request #990 from JakeStanger/build/feature-fix
build: fix issues with compositor feature flags
This commit is contained in:
commit
d5744f597c
2 changed files with 10 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
use super::{BindModeClient, BindModeUpdate};
|
||||
#[cfg(feature = "keyboard+hyprland")]
|
||||
use super::{KeyboardLayoutClient, KeyboardLayoutUpdate};
|
||||
use super::{Visibility, Workspace, WorkspaceUpdate};
|
||||
use super::{Visibility, Workspace};
|
||||
use crate::{arc_mut, lock, send, spawn_blocking};
|
||||
use color_eyre::Result;
|
||||
use hyprland::ctl::switch_xkb_layout;
|
||||
|
@ -14,6 +14,9 @@ use hyprland::shared::{HyprDataVec, WorkspaceType};
|
|||
use tokio::sync::broadcast::{Receiver, Sender, channel};
|
||||
use tracing::{debug, error, info, warn};
|
||||
|
||||
#[cfg(feature = "workspaces")]
|
||||
use super::WorkspaceUpdate;
|
||||
|
||||
#[derive(Debug)]
|
||||
struct TxRx<T> {
|
||||
tx: Sender<T>,
|
||||
|
|
|
@ -1,11 +1,14 @@
|
|||
use super::{Visibility, Workspace, WorkspaceUpdate};
|
||||
use super::{Visibility, Workspace};
|
||||
use crate::clients::sway::Client;
|
||||
use crate::{await_sync, error, send, spawn};
|
||||
use color_eyre::Report;
|
||||
use swayipc_async::{InputChange, InputEvent, Node, WorkspaceChange, WorkspaceEvent};
|
||||
use tokio::sync::broadcast::{Receiver, channel};
|
||||
|
||||
#[cfg(feature = "workspaces+sway")]
|
||||
#[cfg(feature = "workspaces")]
|
||||
use super::WorkspaceUpdate;
|
||||
|
||||
#[cfg(feature = "workspaces")]
|
||||
impl super::WorkspaceClient for Client {
|
||||
fn focus(&self, id: i64) {
|
||||
let client = self.connection().clone();
|
||||
|
@ -112,6 +115,7 @@ impl From<&swayipc_async::Workspace> for Visibility {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "workspaces")]
|
||||
impl From<WorkspaceEvent> for WorkspaceUpdate {
|
||||
fn from(event: WorkspaceEvent) -> Self {
|
||||
match event.change {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue