style: apply nightly rustfmt import grouping across the workspace
rustfmt.toml sets group_imports, imports_granularity and imports_layout, which are nightly-only; agents formatted with stable rustfmt, which ignored them. This is a formatting-only pass with `cargo +nightly fmt`. Test Plan: - cargo clippy --workspace --all-targets -- -D warnings - cargo test --workspace
This commit is contained in:
1 parent
81d4119d85
commit
8bcb85a29a
259 files changed
+2495
-1547
No files matched your search
@@ -8,15 +8,11 @@
|
||||
//! code held a `*ApprtWindow` pointer; here the window GObject implements
|
||||
//! [`WindowHost`] (a small, weak-referencing adapter), see below.
|
||||
|
||||
use std::rc::Rc;
|
||||
use std::sync::Arc;
|
||||
use std::{rc::Rc, sync::Arc};
|
||||
|
||||
use gtk::gdk;
|
||||
use gtk::prelude::*;
|
||||
|
||||
use ghostty_config::config::Config;
|
||||
use ghostty_config::types_b::WindowDecoration;
|
||||
use ghostty_config::{config::Config, types_b::WindowDecoration};
|
||||
use ghostty_input::Mods;
|
||||
use gtk::{gdk, prelude::*};
|
||||
|
||||
pub mod noop;
|
||||
pub mod wayland;
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
|
||||
use std::rc::Rc;
|
||||
|
||||
use ghostty_input::Mods;
|
||||
use gtk::gdk;
|
||||
|
||||
use super::{Result, WindowHost};
|
||||
use ghostty_input::Mods;
|
||||
|
||||
#[derive(Debug, Default, Clone, Copy)]
|
||||
pub struct App;
|
||||
|
||||
@@ -17,42 +17,59 @@
|
||||
//! first (or run with `LD_PRELOAD=libgtk4-layer-shell.so`). Without it,
|
||||
//! `layer_shell::is_supported()` is false and the quick terminal is disabled.
|
||||
|
||||
use std::cell::RefCell;
|
||||
use std::rc::Rc;
|
||||
use std::sync::Arc;
|
||||
use std::sync::Mutex;
|
||||
use std::sync::atomic::{AtomicBool, Ordering};
|
||||
|
||||
use gdk4_wayland::WaylandDisplay;
|
||||
use gdk4_wayland::prelude::*;
|
||||
use gtk::gdk;
|
||||
use gtk::glib;
|
||||
use gtk::prelude::*;
|
||||
use gtk4_layer_shell::{self as layer_shell, LayerShell};
|
||||
use wayland_client::globals::{GlobalListContents, registry_queue_init};
|
||||
use wayland_client::protocol::wl_registry::WlRegistry;
|
||||
use wayland_client::protocol::wl_surface::WlSurface;
|
||||
use wayland_client::{Connection, Dispatch, EventQueue, Proxy, QueueHandle};
|
||||
use wayland_protocols::xdg::activation::v1::client::xdg_activation_token_v1::{
|
||||
self, XdgActivationTokenV1,
|
||||
use std::{
|
||||
cell::RefCell,
|
||||
rc::Rc,
|
||||
sync::{
|
||||
Arc,
|
||||
Mutex,
|
||||
atomic::{AtomicBool, Ordering},
|
||||
},
|
||||
};
|
||||
use wayland_protocols::xdg::activation::v1::client::xdg_activation_v1::XdgActivationV1;
|
||||
use wayland_protocols_plasma::blur::client::org_kde_kwin_blur::OrgKdeKwinBlur;
|
||||
use wayland_protocols_plasma::blur::client::org_kde_kwin_blur_manager::OrgKdeKwinBlurManager;
|
||||
use wayland_protocols_plasma::server_decoration::client::org_kde_kwin_server_decoration::OrgKdeKwinServerDecoration;
|
||||
use wayland_protocols_plasma::server_decoration::client::org_kde_kwin_server_decoration_manager::{
|
||||
self, OrgKdeKwinServerDecorationManager,
|
||||
};
|
||||
use wayland_protocols_plasma::slide::client::org_kde_kwin_slide::OrgKdeKwinSlide;
|
||||
use wayland_protocols_plasma::slide::client::org_kde_kwin_slide_manager::OrgKdeKwinSlideManager;
|
||||
|
||||
use super::{Error, Result, WindowHost};
|
||||
use ghostty_config::config::Config;
|
||||
use ghostty_config::types_b::{
|
||||
QuickTerminalDimensions, QuickTerminalKeyboardInteractivity, QuickTerminalLayer,
|
||||
QuickTerminalPosition, WindowDecoration,
|
||||
use gdk4_wayland::{WaylandDisplay, prelude::*};
|
||||
use ghostty_config::{
|
||||
config::Config,
|
||||
types_b::{
|
||||
QuickTerminalDimensions,
|
||||
QuickTerminalKeyboardInteractivity,
|
||||
QuickTerminalLayer,
|
||||
QuickTerminalPosition,
|
||||
WindowDecoration,
|
||||
},
|
||||
};
|
||||
use ghostty_input::Mods;
|
||||
use gtk::{gdk, glib, prelude::*};
|
||||
use gtk4_layer_shell::{self as layer_shell, LayerShell};
|
||||
use wayland_client::{
|
||||
Connection,
|
||||
Dispatch,
|
||||
EventQueue,
|
||||
Proxy,
|
||||
QueueHandle,
|
||||
globals::{GlobalListContents, registry_queue_init},
|
||||
protocol::{wl_registry::WlRegistry, wl_surface::WlSurface},
|
||||
};
|
||||
use wayland_protocols::xdg::activation::v1::client::{
|
||||
xdg_activation_token_v1::{self, XdgActivationTokenV1},
|
||||
xdg_activation_v1::XdgActivationV1,
|
||||
};
|
||||
use wayland_protocols_plasma::{
|
||||
blur::client::{
|
||||
org_kde_kwin_blur::OrgKdeKwinBlur,
|
||||
org_kde_kwin_blur_manager::OrgKdeKwinBlurManager,
|
||||
},
|
||||
server_decoration::client::{
|
||||
org_kde_kwin_server_decoration::OrgKdeKwinServerDecoration,
|
||||
org_kde_kwin_server_decoration_manager::{self, OrgKdeKwinServerDecorationManager},
|
||||
},
|
||||
slide::client::{
|
||||
org_kde_kwin_slide::OrgKdeKwinSlide,
|
||||
org_kde_kwin_slide_manager::OrgKdeKwinSlideManager,
|
||||
},
|
||||
};
|
||||
|
||||
use super::{Error, Result, WindowHost};
|
||||
|
||||
/// `org_kde_kwin_server_decoration_manager.mode` values.
|
||||
const DECO_NONE: u32 = 0;
|
||||
|
||||
@@ -5,17 +5,16 @@
|
||||
//! comments.
|
||||
#![allow(unsafe_code)]
|
||||
|
||||
use std::ffi::{c_int, c_long, c_uchar, c_uint, c_ulong, c_void};
|
||||
use std::rc::Rc;
|
||||
use std::{
|
||||
ffi::{c_int, c_long, c_uchar, c_uint, c_ulong, c_void},
|
||||
rc::Rc,
|
||||
};
|
||||
|
||||
use gdk4_x11::x11::xlib;
|
||||
use gdk4_x11::{X11Display, X11Surface};
|
||||
use gtk::gdk;
|
||||
use gtk::glib;
|
||||
use gtk::prelude::*;
|
||||
use gdk4_x11::{X11Display, X11Surface, x11::xlib};
|
||||
use ghostty_input::Mods;
|
||||
use gtk::{gdk, glib, prelude::*};
|
||||
|
||||
use super::{Error, Result, WindowHost};
|
||||
use ghostty_input::Mods;
|
||||
|
||||
// XKB bits we need that the `x11` crate doesn't expose (XKBlib.h / XKB.h).
|
||||
const XKB_MAJOR_VERSION: c_int = 1;
|
||||
|
||||
Reference in new issue
Block a user