chore: fix warnings with no features
This commit is contained in:
parent
58938ef8ee
commit
43d6145afd
1 changed files with 7 additions and 5 deletions
|
|
@ -35,14 +35,15 @@ use calloop::{
|
||||||
use cosmic_comp_config::{NumlockState, workspace::WorkspaceLayout};
|
use cosmic_comp_config::{NumlockState, workspace::WorkspaceLayout};
|
||||||
use cosmic_settings_config::shortcuts;
|
use cosmic_settings_config::shortcuts;
|
||||||
use cosmic_settings_config::shortcuts::action::{Direction, ResizeDirection};
|
use cosmic_settings_config::shortcuts::action::{Direction, ResizeDirection};
|
||||||
|
#[cfg(feature = "systemd")]
|
||||||
|
use smithay::backend::input::{Switch, SwitchState, SwitchToggleEvent};
|
||||||
use smithay::{
|
use smithay::{
|
||||||
backend::input::{
|
backend::input::{
|
||||||
AbsolutePositionEvent, Axis, AxisRelativeDirection, AxisSource, Device, DeviceCapability,
|
AbsolutePositionEvent, Axis, AxisRelativeDirection, AxisSource, Device, DeviceCapability,
|
||||||
GestureBeginEvent, GestureEndEvent, GesturePinchUpdateEvent as _,
|
GestureBeginEvent, GestureEndEvent, GesturePinchUpdateEvent as _,
|
||||||
GestureSwipeUpdateEvent as _, InputBackend, InputEvent, KeyState, KeyboardKeyEvent,
|
GestureSwipeUpdateEvent as _, InputBackend, InputEvent, KeyState, KeyboardKeyEvent,
|
||||||
PointerAxisEvent, ProximityState, Switch, SwitchState, SwitchToggleEvent,
|
PointerAxisEvent, ProximityState, TabletToolButtonEvent, TabletToolEvent,
|
||||||
TabletToolButtonEvent, TabletToolEvent, TabletToolProximityEvent, TabletToolTipEvent,
|
TabletToolProximityEvent, TabletToolTipEvent, TabletToolTipState, TouchEvent,
|
||||||
TabletToolTipState, TouchEvent,
|
|
||||||
},
|
},
|
||||||
desktop::{PopupKeyboardGrab, WindowSurfaceType, utils::under_from_surface_tree},
|
desktop::{PopupKeyboardGrab, WindowSurfaceType, utils::under_from_surface_tree},
|
||||||
input::{
|
input::{
|
||||||
|
|
@ -74,7 +75,7 @@ use smithay::{
|
||||||
tablet_manager::{TabletDescriptor, TabletSeatTrait},
|
tablet_manager::{TabletDescriptor, TabletSeatTrait},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
use tracing::{error, trace, warn};
|
use tracing::{error, trace};
|
||||||
use xkbcommon::xkb::{Keycode, Keysym};
|
use xkbcommon::xkb::{Keycode, Keysym};
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
|
|
@ -1599,6 +1600,7 @@ impl State {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
InputEvent::Special(_) => {}
|
InputEvent::Special(_) => {}
|
||||||
|
#[allow(unused_variables)]
|
||||||
InputEvent::SwitchToggle { event } => {
|
InputEvent::SwitchToggle { event } => {
|
||||||
#[cfg(feature = "logind")]
|
#[cfg(feature = "logind")]
|
||||||
if event.switch() == Some(Switch::Lid) && self.common.inhibit_lid_fd.is_some() {
|
if event.switch() == Some(Switch::Lid) && self.common.inhibit_lid_fd.is_some() {
|
||||||
|
|
@ -1620,7 +1622,7 @@ impl State {
|
||||||
|
|
||||||
if let Err(err) = self.refresh_output_config() {
|
if let Err(err) = self.refresh_output_config() {
|
||||||
if !closed {
|
if !closed {
|
||||||
warn!(?err, "Failed to re-enable internal connector");
|
tracing::warn!(?err, "Failed to re-enable internal connector");
|
||||||
if let Some(output) = output {
|
if let Some(output) = output {
|
||||||
use cosmic_comp_config::output::comp::OutputState;
|
use cosmic_comp_config::output::comp::OutputState;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue