diff options
Diffstat (limited to 'src/niri.rs')
| -rw-r--r-- | src/niri.rs | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/niri.rs b/src/niri.rs index 50cf444f..79f99858 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -143,9 +143,8 @@ use crate::ui::screenshot_ui::{OutputScreenshot, ScreenshotUi, ScreenshotUiRende use crate::utils::scale::{closest_representable_scale, guess_monitor_scale}; use crate::utils::spawning::CHILD_ENV; use crate::utils::{ - center, center_f64, get_monotonic_time, ipc_transform_to_smithay, is_laptop_panel, - logical_output, make_screenshot_path, output_matches_name, output_size, send_scale_transform, - write_png_rgba8, + center, center_f64, get_monotonic_time, ipc_transform_to_smithay, logical_output, + make_screenshot_path, output_matches_name, output_size, send_scale_transform, write_png_rgba8, }; use crate::window::{InitialConfigureState, Mapped, ResolvedWindowRules, Unmapped, WindowRef}; use crate::{animation, niri_render_elements}; @@ -4811,22 +4810,6 @@ impl Niri { .unwrap(); self.pointer_inactivity_timer = Some(token); } - - pub fn should_enable_laptop_panel(&self, connector: &str) -> bool { - // Make sure the output config is reloaded when any of the conditions in this function - // change. - - let config = self.config.borrow(); - - // We reload the output config when this flag changes. - if config.debug.keep_laptop_panel_on_when_lid_is_closed { - return true; - } - - // We reload the output config when the lid switch is toggled, and the connector name is - // static. - !(self.is_lid_closed && is_laptop_panel(connector)) - } } pub struct ClientState { |
