all: import split crates directly
This commit is contained in:
parent
bfc2a525de
commit
dc62d2240f
247 changed files with 737 additions and 550 deletions
|
|
@ -443,7 +443,7 @@ pub fn main() -> Result<()> {
|
||||||
writeln!(f, "use std::rc::Rc;")?;
|
writeln!(f, "use std::rc::Rc;")?;
|
||||||
writeln!(f, "use uapi::OwnedFd;")?;
|
writeln!(f, "use uapi::OwnedFd;")?;
|
||||||
writeln!(f, "use bstr::BStr;")?;
|
writeln!(f, "use bstr::BStr;")?;
|
||||||
writeln!(f, "use crate::fixed::Fixed;")?;
|
writeln!(f, "use jay_units::fixed::Fixed;")?;
|
||||||
writeln!(f, "use crate::client::{{EventFormatter, RequestParser}};")?;
|
writeln!(f, "use crate::client::{{EventFormatter, RequestParser}};")?;
|
||||||
writeln!(f, "use crate::object::{{ObjectId, Interface}};")?;
|
writeln!(f, "use crate::object::{{ObjectId, Interface}};")?;
|
||||||
writeln!(
|
writeln!(
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
|
use jay_async_engine::SpawnedFuture;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::SpawnedFuture,
|
|
||||||
client::ClientMetadata,
|
client::ClientMetadata,
|
||||||
state::State,
|
state::State,
|
||||||
utils::{
|
utils::{
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
|
use jay_theme::Color;
|
||||||
|
use jay_geometry::Rect;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
cmm::{cmm_description::ColorDescription, cmm_render_intent::RenderIntent},
|
cmm::{cmm_description::ColorDescription, cmm_render_intent::RenderIntent},
|
||||||
gfx_api::{GfxTexture, SampleRect},
|
gfx_api::{GfxTexture, SampleRect},
|
||||||
ifs::wl_surface::{SurfaceBuffer, WlSurface},
|
ifs::wl_surface::{SurfaceBuffer, WlSurface},
|
||||||
rect::Rect,
|
|
||||||
state::State,
|
state::State,
|
||||||
theme::Color,
|
|
||||||
tree::{LatchListener, NodeId, OutputNode},
|
tree::{LatchListener, NodeId, OutputNode},
|
||||||
utils::{clonecell::CloneCell, event_listener::EventListener},
|
utils::{clonecell::CloneCell, event_listener::EventListener},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
pub use jay_async_engine::*;
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
|
use jay_async_engine::SpawnedFuture;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::SpawnedFuture,
|
|
||||||
backend::transaction::{
|
backend::transaction::{
|
||||||
BackendConnectorTransaction, BackendConnectorTransactionError,
|
BackendConnectorTransaction, BackendConnectorTransactionError,
|
||||||
BackendConnectorTransactionType, BackendConnectorTransactionTypeDyn,
|
BackendConnectorTransactionType, BackendConnectorTransactionTypeDyn,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
|
use jay_async_engine::SpawnedFuture;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::SpawnedFuture,
|
|
||||||
backend::{
|
backend::{
|
||||||
self, Backend, BackendConnectorState, BackendConnectorStateSerial, Connector,
|
self, Backend, BackendConnectorState, BackendConnectorStateSerial, Connector,
|
||||||
ConnectorEvent, ConnectorId, ConnectorKernelId, DrmDeviceId,
|
ConnectorEvent, ConnectorId, ConnectorKernelId, DrmDeviceId,
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
|
use jay_io_uring::IoUringError;
|
||||||
|
use jay_async_engine::SpawnedFuture;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::SpawnedFuture,
|
|
||||||
backend::{Backend, BackendDrmDevice, BackendEvent, DrmDeviceId, DrmEvent},
|
backend::{Backend, BackendDrmDevice, BackendEvent, DrmDeviceId, DrmEvent},
|
||||||
backends::headless::HeadlessBackendError::{
|
backends::headless::HeadlessBackendError::{
|
||||||
CreateDrm, GetDrmNodes, MonitorFdFailed, MonitorFdReadable, NoDrmNodes, OpenDrmNode,
|
CreateDrm, GetDrmNodes, MonitorFdFailed, MonitorFdReadable, NoDrmNodes, OpenDrmNode,
|
||||||
},
|
},
|
||||||
gfx_api::{GfxApi, GfxContext},
|
gfx_api::{GfxApi, GfxContext},
|
||||||
io_uring::IoUringError,
|
|
||||||
state::State,
|
state::State,
|
||||||
udev::{Udev, UdevDevice, UdevError, UdevMonitor},
|
udev::{Udev, UdevDevice, UdevError, UdevMonitor},
|
||||||
utils::{
|
utils::{
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,10 @@ mod present;
|
||||||
mod transaction;
|
mod transaction;
|
||||||
mod video;
|
mod video;
|
||||||
|
|
||||||
|
use jay_async_engine::SpawnedFuture;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::SpawnedFuture,
|
|
||||||
backend::{
|
backend::{
|
||||||
Backend, ButtonState, InputDevice, InputDeviceAccelProfile, InputDeviceCapability,
|
Backend, ButtonState, InputDevice, InputDeviceAccelProfile, InputDeviceCapability,
|
||||||
InputDeviceClickMethod, InputDeviceGroupId, InputDeviceId, InputEvent, KeyState, Leds,
|
InputDeviceClickMethod, InputDeviceGroupId, InputDeviceId, InputEvent, KeyState, Leds,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
use jay_udmabuf::{Udmabuf, UdmabufError};
|
||||||
|
use jay_geometry::{DamageQueue, Rect, Region};
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
allocator::BufferObject,
|
allocator::BufferObject,
|
||||||
|
|
@ -14,8 +16,8 @@ use {
|
||||||
AcquireSync, FdSync, GfxBlendBuffer, GfxError, GfxFormat, GfxFramebuffer, GfxTexture,
|
AcquireSync, FdSync, GfxBlendBuffer, GfxError, GfxFormat, GfxFramebuffer, GfxTexture,
|
||||||
GfxWriteModifier, ReleaseSync, needs_render_usage,
|
GfxWriteModifier, ReleaseSync, needs_render_usage,
|
||||||
},
|
},
|
||||||
rect::{DamageQueue, Rect, Region},
|
|
||||||
udmabuf::{Udmabuf, UdmabufError},
|
|
||||||
utils::{errorfmt::ErrorFmt, rc_eq::rc_eq},
|
utils::{errorfmt::ErrorFmt, rc_eq::rc_eq},
|
||||||
video::{
|
video::{
|
||||||
LINEAR_MODIFIER, Modifier,
|
LINEAR_MODIFIER, Modifier,
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
|
use jay_units::fixed::Fixed;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
backend::{
|
backend::{
|
||||||
AxisSource, ButtonState, InputEvent, KeyState, PadButtonState, ScrollAxis,
|
AxisSource, ButtonState, InputEvent, KeyState, PadButtonState, ScrollAxis, SwitchEvent,
|
||||||
SwitchEvent, TabletRingEventSource, TabletStripEventSource, TabletTool2dChange,
|
TabletRingEventSource, TabletStripEventSource, TabletTool2dChange,
|
||||||
TabletToolCapability, TabletToolChanges, TabletToolId, TabletToolInit,
|
TabletToolCapability, TabletToolChanges, TabletToolId, TabletToolInit,
|
||||||
TabletToolPositionChange, TabletToolType, TabletToolWheelChange, ToolButtonState,
|
TabletToolPositionChange, TabletToolType, TabletToolWheelChange, ToolButtonState,
|
||||||
},
|
},
|
||||||
backends::metal::MetalBackend,
|
backends::metal::MetalBackend,
|
||||||
fixed::Fixed,
|
|
||||||
libinput::{
|
libinput::{
|
||||||
consts::{
|
consts::{
|
||||||
LIBINPUT_BUTTON_STATE_PRESSED, LIBINPUT_BUTTON_STATE_RELEASED,
|
LIBINPUT_BUTTON_STATE_PRESSED, LIBINPUT_BUTTON_STATE_RELEASED,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
use jay_time::Time;
|
||||||
|
use jay_geometry::Region;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
backend::{BackendDrmDevice, Connector},
|
backend::{BackendDrmDevice, Connector},
|
||||||
|
|
@ -13,9 +15,9 @@ use {
|
||||||
SyncFile, create_render_pass,
|
SyncFile, create_render_pass,
|
||||||
},
|
},
|
||||||
ifs::wl_output::BlendSpace,
|
ifs::wl_output::BlendSpace,
|
||||||
rect::Region,
|
|
||||||
time::Time,
|
|
||||||
tracy::FrameName,
|
jay_tracy::FrameName,
|
||||||
tree::OutputNode,
|
tree::OutputNode,
|
||||||
utils::{errorfmt::ErrorFmt, oserror::OsError},
|
utils::{errorfmt::ErrorFmt, oserror::OsError},
|
||||||
video::{
|
video::{
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
use jay_edid::{CtaDataBlock, Descriptor, EdidExtension};
|
||||||
|
use jay_async_engine::Phase;
|
||||||
use {
|
use {
|
||||||
super::{
|
super::{
|
||||||
ConnectorDisplayData, ConnectorFutures, FrontState, MetalConnector, MetalCrtc,
|
ConnectorDisplayData, ConnectorFutures, FrontState, MetalConnector, MetalCrtc,
|
||||||
|
|
@ -5,7 +7,7 @@ use {
|
||||||
properties::{DefaultValue, collect_properties, create_default_properties},
|
properties::{DefaultValue, collect_properties, create_default_properties},
|
||||||
},
|
},
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::Phase,
|
|
||||||
backend::{
|
backend::{
|
||||||
BackendColorSpace, BackendConnectorState, BackendEotfs, BackendLuminance,
|
BackendColorSpace, BackendConnectorState, BackendEotfs, BackendLuminance,
|
||||||
ConnectorKernelId, Mode, OutputId,
|
ConnectorKernelId, Mode, OutputId,
|
||||||
|
|
@ -16,7 +18,7 @@ use {
|
||||||
transaction::{DrmConnectorState, DrmCrtcState, DrmPlaneState},
|
transaction::{DrmConnectorState, DrmCrtcState, DrmPlaneState},
|
||||||
},
|
},
|
||||||
cmm::cmm_primaries::Primaries,
|
cmm::cmm_primaries::Primaries,
|
||||||
edid::{CtaDataBlock, Descriptor, EdidExtension},
|
|
||||||
format::XRGB8888,
|
format::XRGB8888,
|
||||||
utils::{
|
utils::{
|
||||||
binary_search_map::BinarySearchMap, bitflags::BitflagsExt, clonecell::CloneCell,
|
binary_search_map::BinarySearchMap, bitflags::BitflagsExt, clonecell::CloneCell,
|
||||||
|
|
@ -186,7 +188,7 @@ pub(super) fn create_connector_display_data(
|
||||||
break 'fetch_edid;
|
break 'fetch_edid;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let edid = match crate::edid::parse(&blob) {
|
let edid = match jay_edid::parse(&blob) {
|
||||||
Ok(e) => e,
|
Ok(e) => e,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
log::error!(
|
log::error!(
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
|
use jay_async_engine::SpawnedFuture;
|
||||||
use {
|
use {
|
||||||
super::{copy_device::CopyDeviceHolder, lease::MetalLeaseData, properties::DefaultProperty},
|
super::{copy_device::CopyDeviceHolder, lease::MetalLeaseData, properties::DefaultProperty},
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::SpawnedFuture,
|
|
||||||
backend::{
|
backend::{
|
||||||
BackendConnectorState, BackendLuminance, ConnectorEvent, ConnectorId,
|
BackendConnectorState, BackendLuminance, ConnectorEvent, ConnectorId,
|
||||||
ConnectorKernelId, DrmDeviceId, DrmEvent, Mode, OutputId,
|
ConnectorKernelId, DrmDeviceId, DrmEvent, Mode, OutputId,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
|
use jay_time::Time;
|
||||||
|
use jay_async_engine::{Phase, SpawnedFuture};
|
||||||
|
use jay_units::fixed::Fixed;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
allocator::BufferObject,
|
allocator::BufferObject,
|
||||||
async_engine::{Phase, SpawnedFuture},
|
|
||||||
backend::{
|
backend::{
|
||||||
AXIS_120, AxisSource, Backend, BackendConnectorState, BackendDrmDevice, BackendEvent,
|
AXIS_120, AxisSource, Backend, BackendConnectorState, BackendDrmDevice, BackendEvent,
|
||||||
ButtonState, Connector, ConnectorEvent, ConnectorId, ConnectorKernelId, DrmDeviceId,
|
ButtonState, Connector, ConnectorEvent, ConnectorId, ConnectorKernelId, DrmDeviceId,
|
||||||
|
|
@ -15,13 +18,12 @@ use {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
cmm::cmm_primaries::Primaries,
|
cmm::cmm_primaries::Primaries,
|
||||||
fixed::Fixed,
|
|
||||||
format::{Format, XRGB8888},
|
format::{Format, XRGB8888},
|
||||||
gfx_api::{
|
gfx_api::{
|
||||||
AcquireSync, GfxApi, GfxContext, GfxError, GfxFramebuffer, GfxTexture, ReleaseSync,
|
AcquireSync, GfxApi, GfxContext, GfxError, GfxFramebuffer, GfxTexture, ReleaseSync,
|
||||||
},
|
},
|
||||||
state::State,
|
state::State,
|
||||||
time::Time,
|
|
||||||
utils::{
|
utils::{
|
||||||
clonecell::CloneCell, copyhashmap::CopyHashMap, errorfmt::ErrorFmt, numcell::NumCell,
|
clonecell::CloneCell, copyhashmap::CopyHashMap, errorfmt::ErrorFmt, numcell::NumCell,
|
||||||
queue::AsyncQueue, syncqueue::SyncQueue,
|
queue::AsyncQueue, syncqueue::SyncQueue,
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
pub use jay_bugs::*;
|
|
||||||
|
|
@ -22,6 +22,8 @@ mod unlock;
|
||||||
mod version;
|
mod version;
|
||||||
mod xwayland;
|
mod xwayland;
|
||||||
|
|
||||||
|
use jay_pr_caps::drop_all_pr_caps;
|
||||||
|
use jay_logger::LogLevel;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
cli::{
|
cli::{
|
||||||
|
|
@ -31,9 +33,9 @@ use {
|
||||||
xwayland::XwaylandArgs,
|
xwayland::XwaylandArgs,
|
||||||
},
|
},
|
||||||
compositor::start_compositor,
|
compositor::start_compositor,
|
||||||
logger::LogLevel,
|
|
||||||
portal,
|
portal,
|
||||||
pr_caps::drop_all_pr_caps,
|
|
||||||
},
|
},
|
||||||
clap::{Args, Parser, Subcommand, ValueEnum, ValueHint},
|
clap::{Args, Parser, Subcommand, ValueEnum, ValueHint},
|
||||||
clap_complete::Shell,
|
clap_complete::Shell,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
use {
|
use {
|
||||||
crate::{theme::Color, utils::errorfmt::ErrorFmt},
|
crate::utils::errorfmt::ErrorFmt,
|
||||||
|
jay_theme::Color,
|
||||||
std::ops::Range,
|
std::ops::Range,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
|
use jay_logger::Logger;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
cli::{GlobalArgs, json::jsonl},
|
cli::{GlobalArgs, json::jsonl},
|
||||||
compositor::config_dir,
|
compositor::config_dir,
|
||||||
logger::Logger,
|
|
||||||
utils::errorfmt::ErrorFmt,
|
utils::errorfmt::ErrorFmt,
|
||||||
},
|
},
|
||||||
clap::{Args, Subcommand},
|
clap::{Args, Subcommand},
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
use std::time::Duration;
|
||||||
|
use jay_units::scale::Scale;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
backend::{BackendColorSpace, BackendEotfs},
|
backend::{BackendColorSpace, BackendEotfs},
|
||||||
|
|
@ -11,7 +13,6 @@ use {
|
||||||
cmm::cmm_primaries::Primaries,
|
cmm::cmm_primaries::Primaries,
|
||||||
format::{Format, XRGB8888},
|
format::{Format, XRGB8888},
|
||||||
ifs::wl_output::BlendSpace,
|
ifs::wl_output::BlendSpace,
|
||||||
scale::Scale,
|
|
||||||
tools::tool_client::{Handle, ToolClient, with_tool_client},
|
tools::tool_client::{Handle, ToolClient, with_tool_client},
|
||||||
tree::Transform,
|
tree::Transform,
|
||||||
utils::{errorfmt::ErrorFmt, ordered_float::F64, static_text::StaticText},
|
utils::{errorfmt::ErrorFmt, ordered_float::F64, static_text::StaticText},
|
||||||
|
|
@ -29,7 +30,7 @@ use {
|
||||||
fmt::{self, Display, Formatter},
|
fmt::{self, Display, Formatter},
|
||||||
rc::Rc,
|
rc::Rc,
|
||||||
str::FromStr,
|
str::FromStr,
|
||||||
time::Duration,
|
|
||||||
},
|
},
|
||||||
thiserror::Error,
|
thiserror::Error,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
|
use jay_udmabuf::{Udmabuf, UdmabufError};
|
||||||
|
use jay_eventfd_cache::EventfdCache;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
allocator::{Allocator, AllocatorError, BufferUsage, MappedBuffer},
|
allocator::{Allocator, AllocatorError, BufferUsage, MappedBuffer},
|
||||||
cli::{GlobalArgs, ScreenshotArgs, ScreenshotFormat},
|
cli::{GlobalArgs, ScreenshotArgs, ScreenshotFormat},
|
||||||
eventfd_cache::EventfdCache,
|
|
||||||
format::XRGB8888,
|
format::XRGB8888,
|
||||||
gfx_apis,
|
gfx_apis,
|
||||||
tools::tool_client::{Handle, ToolClient, with_tool_client},
|
tools::tool_client::{Handle, ToolClient, with_tool_client},
|
||||||
udmabuf::{Udmabuf, UdmabufError},
|
|
||||||
utils::{errorfmt::ErrorFmt, queue::AsyncQueue, windows::WindowsExt},
|
utils::{errorfmt::ErrorFmt, queue::AsyncQueue, windows::WindowsExt},
|
||||||
video::{
|
video::{
|
||||||
dmabuf::{DmaBuf, DmaBufIds, DmaBufPlane, PlaneVec},
|
dmabuf::{DmaBuf, DmaBufIds, DmaBufPlane, PlaneVec},
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
|
use jay_units::fixed::Fixed;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
cli::{
|
cli::{
|
||||||
GlobalArgs, SeatTestArgs,
|
GlobalArgs, SeatTestArgs,
|
||||||
json::{JsonAxisData, JsonSeatEvent, jsonl},
|
json::{JsonAxisData, JsonSeatEvent, jsonl},
|
||||||
},
|
},
|
||||||
fixed::Fixed,
|
|
||||||
ifs::wl_seat::wl_pointer::{
|
ifs::wl_seat::wl_pointer::{
|
||||||
CONTINUOUS, FINGER, HORIZONTAL_SCROLL, PendingScroll, VERTICAL_SCROLL, WHEEL,
|
CONTINUOUS, FINGER, HORIZONTAL_SCROLL, PendingScroll, VERTICAL_SCROLL, WHEEL,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
use jay_geometry::Rect;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
cli::{
|
cli::{
|
||||||
|
|
@ -10,7 +11,7 @@ use {
|
||||||
TREE_TY_LOCK_SURFACE, TREE_TY_OUTPUT, TREE_TY_PLACEHOLDER, TREE_TY_WORKSPACE,
|
TREE_TY_LOCK_SURFACE, TREE_TY_OUTPUT, TREE_TY_PLACEHOLDER, TREE_TY_WORKSPACE,
|
||||||
TREE_TY_X_WINDOW, TREE_TY_XDG_POPUP, TREE_TY_XDG_TOPLEVEL,
|
TREE_TY_X_WINDOW, TREE_TY_XDG_POPUP, TREE_TY_XDG_TOPLEVEL,
|
||||||
},
|
},
|
||||||
rect::Rect,
|
|
||||||
tools::tool_client::{Handle, ToolClient, with_tool_client},
|
tools::tool_client::{Handle, ToolClient, with_tool_client},
|
||||||
wire::{JayCompositorId, JayTreeQueryId, jay_client_query, jay_compositor, jay_tree_query},
|
wire::{JayCompositorId, JayTreeQueryId, jay_client_query, jay_compositor, jay_tree_query},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,9 @@
|
||||||
|
use jay_async_engine::SpawnedFuture;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::SpawnedFuture,
|
|
||||||
client::{error::LookupError, objects::Objects},
|
client::{error::LookupError, objects::Objects},
|
||||||
criteria::{
|
criteria::clm::{CL_CHANGED_DESTROYED, CL_CHANGED_NEW, ClMatcherChange},
|
||||||
CritDestroyListener, CritMatcherId,
|
|
||||||
clm::{CL_CHANGED_DESTROYED, CL_CHANGED_NEW, ClMatcherChange},
|
|
||||||
},
|
|
||||||
ifs::{
|
ifs::{
|
||||||
wl_display::WlDisplay,
|
wl_display::WlDisplay,
|
||||||
wl_registry::WlRegistry,
|
wl_registry::WlRegistry,
|
||||||
|
|
@ -28,6 +26,7 @@ use {
|
||||||
wire::WlRegistryId,
|
wire::WlRegistryId,
|
||||||
},
|
},
|
||||||
ahash::AHashMap,
|
ahash::AHashMap,
|
||||||
|
jay_criteria::{CritDestroyListener, CritMatcherId},
|
||||||
std::{
|
std::{
|
||||||
cell::{Cell, RefCell},
|
cell::{Cell, RefCell},
|
||||||
collections::VecDeque,
|
collections::VecDeque,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
|
use jay_async_engine::Phase;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::Phase,
|
|
||||||
client::{Client, ClientError},
|
client::{Client, ClientError},
|
||||||
utils::{
|
utils::{
|
||||||
buffd::{BufFdOut, MsgParser, WlBufFdIn, WlMessage},
|
buffd::{BufFdOut, MsgParser, WlBufFdIn, WlMessage},
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,20 @@
|
||||||
|
use jay_wheel::{Wheel, WheelError};
|
||||||
|
use std::time::Duration;
|
||||||
|
use jay_sighand::{self as sighand, SighandError};
|
||||||
|
use jay_pr_caps::{PrCapsThread, pr_caps};
|
||||||
|
use jay_logger::Logger;
|
||||||
|
use jay_io_uring::{IoUring, IoUringError};
|
||||||
|
use jay_eventfd_cache::EventfdCache;
|
||||||
|
use jay_cpu_worker::{CpuWorker, CpuWorkerError};
|
||||||
|
use jay_async_engine::{AsyncEngine, Phase, SpawnedFuture};
|
||||||
|
use jay_keyboard::KbvmContext;
|
||||||
#[cfg(feature = "it")]
|
#[cfg(feature = "it")]
|
||||||
use crate::it::test_backend::TestBackend;
|
use crate::it::test_backend::TestBackend;
|
||||||
|
use jay_units::scale::Scale;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
acceptor::{Acceptor, AcceptorError},
|
acceptor::{Acceptor, AcceptorError},
|
||||||
async_engine::{AsyncEngine, Phase, SpawnedFuture},
|
|
||||||
backend::{Backend, Connector},
|
backend::{Backend, Connector},
|
||||||
backends::{
|
backends::{
|
||||||
dummy::{DummyBackend, DummyOutput},
|
dummy::{DummyBackend, DummyOutput},
|
||||||
|
|
@ -15,9 +26,8 @@ use {
|
||||||
cmm::{cmm_manager::ColorManager, cmm_primaries::Primaries},
|
cmm::{cmm_manager::ColorManager, cmm_primaries::Primaries},
|
||||||
config::ConfigProxy,
|
config::ConfigProxy,
|
||||||
copy_device::CopyDeviceRegistry,
|
copy_device::CopyDeviceRegistry,
|
||||||
cpu_worker::{CpuWorker, CpuWorkerError},
|
|
||||||
criteria::{
|
criteria::{
|
||||||
CritMatcherIds,
|
|
||||||
clm::{ClMatcherManager, handle_cl_changes, handle_cl_leaf_events},
|
clm::{ClMatcherManager, handle_cl_changes, handle_cl_leaf_events},
|
||||||
tlm::{
|
tlm::{
|
||||||
TlMatcherManager, handle_tl_changes, handle_tl_just_mapped, handle_tl_leaf_events,
|
TlMatcherManager, handle_tl_changes, handle_tl_just_mapped, handle_tl_leaf_events,
|
||||||
|
|
@ -26,7 +36,7 @@ use {
|
||||||
damage::{DamageVisualizer, visualize_damage},
|
damage::{DamageVisualizer, visualize_damage},
|
||||||
dbus::Dbus,
|
dbus::Dbus,
|
||||||
ei::ei_client::EiClients,
|
ei::ei_client::EiClients,
|
||||||
eventfd_cache::EventfdCache,
|
|
||||||
forker,
|
forker,
|
||||||
format::XRGB8888,
|
format::XRGB8888,
|
||||||
gfx_api::GfxApi,
|
gfx_api::GfxApi,
|
||||||
|
|
@ -45,18 +55,16 @@ use {
|
||||||
wlr_output_manager::wlr_output_manager_done,
|
wlr_output_manager::wlr_output_manager_done,
|
||||||
workspace_manager::workspace_manager_done,
|
workspace_manager::workspace_manager_done,
|
||||||
},
|
},
|
||||||
io_uring::{IoUring, IoUringError},
|
|
||||||
kbvm::KbvmContext,
|
|
||||||
leaks,
|
leaks,
|
||||||
logger::Logger,
|
|
||||||
output_schedule::create_output_schedule,
|
output_schedule::create_output_schedule,
|
||||||
portal::{self, PortalStartup},
|
portal::{self, PortalStartup},
|
||||||
pr_caps::{PrCapsThread, pr_caps},
|
|
||||||
scale::Scale,
|
|
||||||
sighand::{self, SighandError},
|
|
||||||
state::{ConnectorData, IdleState, ScreenlockState, State, XWaylandState},
|
state::{ConnectorData, IdleState, ScreenlockState, State, XWaylandState},
|
||||||
tasks::{self, handle_const_40hz_latch, idle},
|
tasks::{self, handle_const_40hz_latch, idle},
|
||||||
tracy::enable_profiler,
|
jay_tracy::enable_profiler,
|
||||||
tree::{
|
tree::{
|
||||||
DisplayNode, NodeIds, OutputNode, TearingMode, Transform, VrrMode,
|
DisplayNode, NodeIds, OutputNode, TearingMode, Transform, VrrMode,
|
||||||
WorkspaceDisplayOrder, WorkspaceNode, container_layout, container_render_positions,
|
WorkspaceDisplayOrder, WorkspaceNode, container_layout, container_render_positions,
|
||||||
|
|
@ -82,11 +90,12 @@ use {
|
||||||
},
|
},
|
||||||
version::VERSION,
|
version::VERSION,
|
||||||
video::drm::wait_for_syncobj::WaitForSyncobj,
|
video::drm::wait_for_syncobj::WaitForSyncobj,
|
||||||
wheel::{Wheel, WheelError},
|
|
||||||
},
|
},
|
||||||
ahash::AHashSet,
|
ahash::AHashSet,
|
||||||
forker::ForkerProxy,
|
forker::ForkerProxy,
|
||||||
jay_config::protocol::DEFAULT_SEAT_NAME,
|
jay_config::protocol::DEFAULT_SEAT_NAME,
|
||||||
|
jay_criteria::CritMatcherIds,
|
||||||
std::{
|
std::{
|
||||||
cell::{Cell, RefCell},
|
cell::{Cell, RefCell},
|
||||||
env,
|
env,
|
||||||
|
|
@ -94,7 +103,7 @@ use {
|
||||||
ops::Deref,
|
ops::Deref,
|
||||||
rc::Rc,
|
rc::Rc,
|
||||||
sync::Arc,
|
sync::Arc,
|
||||||
time::Duration,
|
|
||||||
},
|
},
|
||||||
thiserror::Error,
|
thiserror::Error,
|
||||||
uapi::c,
|
uapi::c,
|
||||||
|
|
@ -236,6 +245,7 @@ fn start_compositor2(
|
||||||
render_ctx_ever_initialized: Cell::new(false),
|
render_ctx_ever_initialized: Cell::new(false),
|
||||||
cursors: Default::default(),
|
cursors: Default::default(),
|
||||||
wheel,
|
wheel,
|
||||||
|
|
||||||
clients: Clients::new(),
|
clients: Clients::new(),
|
||||||
globals: Globals::new(),
|
globals: Globals::new(),
|
||||||
connector_ids: Default::default(),
|
connector_ids: Default::default(),
|
||||||
|
|
@ -355,6 +365,7 @@ fn start_compositor2(
|
||||||
ei_clients: EiClients::new(),
|
ei_clients: EiClients::new(),
|
||||||
slow_ei_clients: Default::default(),
|
slow_ei_clients: Default::default(),
|
||||||
cpu_worker,
|
cpu_worker,
|
||||||
|
|
||||||
ui_drag_enabled: Cell::new(true),
|
ui_drag_enabled: Cell::new(true),
|
||||||
ui_drag_threshold_squared: Cell::new(10),
|
ui_drag_threshold_squared: Cell::new(10),
|
||||||
animations: Default::default(),
|
animations: Default::default(),
|
||||||
|
|
@ -395,6 +406,7 @@ fn start_compositor2(
|
||||||
copy_device_registry: Rc::new(CopyDeviceRegistry::new(&ring, &engine, &eventfd_cache)),
|
copy_device_registry: Rc::new(CopyDeviceRegistry::new(&ring, &engine, &eventfd_cache)),
|
||||||
supports_presentation_feedback: Default::default(),
|
supports_presentation_feedback: Default::default(),
|
||||||
eventfd_cache,
|
eventfd_cache,
|
||||||
|
|
||||||
lazy_event_sources: Default::default(),
|
lazy_event_sources: Default::default(),
|
||||||
post_layout_event_sources: Default::default(),
|
post_layout_event_sources: Default::default(),
|
||||||
bo_drop_queue: Rc::new(ObjectDropQueue::new(&ring)),
|
bo_drop_queue: Rc::new(ObjectDropQueue::new(&ring)),
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,13 @@
|
||||||
|
use std::time::{Duration, SystemTime};
|
||||||
|
use jay_theme::{ThemeColor, ThemeSized};
|
||||||
|
use jay_config::theme::{BarPosition, colors::Colorable, sized::Resizable};
|
||||||
|
use jay_io_uring::TaskResultExt;
|
||||||
|
use jay_async_engine::SpawnedFuture;
|
||||||
|
use jay_keyboard::{KbvmError, KbvmMap};
|
||||||
|
use jay_units::scale::Scale;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::SpawnedFuture,
|
|
||||||
backend::{
|
backend::{
|
||||||
self, BackendColorSpace, BackendEotfs, ConnectorId, DrmDeviceId,
|
self, BackendColorSpace, BackendEotfs, ConnectorId, DrmDeviceId,
|
||||||
InputDeviceAccelProfile, InputDeviceCapability, InputDeviceClickMethod, InputDeviceId,
|
InputDeviceAccelProfile, InputDeviceCapability, InputDeviceClickMethod, InputDeviceId,
|
||||||
|
|
@ -10,7 +17,6 @@ use {
|
||||||
cmm::cmm_eotf::Eotf,
|
cmm::cmm_eotf::Eotf,
|
||||||
compositor::{MAX_EXTENTS, WAYLAND_DISPLAY},
|
compositor::{MAX_EXTENTS, WAYLAND_DISPLAY},
|
||||||
criteria::{
|
criteria::{
|
||||||
CritLiteralOrRegex, CritMgrExt, CritTarget, CritUpstreamNode,
|
|
||||||
clm::ClmLeafMatcher,
|
clm::ClmLeafMatcher,
|
||||||
tlm::{TlmLeafMatcher, TlmUpstreamNode},
|
tlm::{TlmLeafMatcher, TlmUpstreamNode},
|
||||||
},
|
},
|
||||||
|
|
@ -20,13 +26,11 @@ use {
|
||||||
wl_seat::{SeatId, WlSeatGlobal},
|
wl_seat::{SeatId, WlSeatGlobal},
|
||||||
wp_content_type_v1::ContentTypeExt,
|
wp_content_type_v1::ContentTypeExt,
|
||||||
},
|
},
|
||||||
io_uring::TaskResultExt,
|
|
||||||
kbvm::{KbvmError, KbvmMap},
|
|
||||||
output_schedule::map_cursor_hz,
|
output_schedule::map_cursor_hz,
|
||||||
scale::Scale,
|
|
||||||
state::{ConnectorData, DeviceHandlerData, DrmDevData, OutputData, State},
|
state::{ConnectorData, DeviceHandlerData, DrmDevData, OutputData, State},
|
||||||
tagged_acceptor::TaggedAcceptorError,
|
tagged_acceptor::TaggedAcceptorError,
|
||||||
theme::{ThemeColor, ThemeSized},
|
|
||||||
tree::{
|
tree::{
|
||||||
ContainerSplit, OutputNode, TearingMode, TileState, ToplevelData, ToplevelIdentifier,
|
ContainerSplit, OutputNode, TearingMode, TileState, ToplevelData, ToplevelIdentifier,
|
||||||
ToplevelNode, VrrMode, WorkspaceNode, toplevel_create_split, toplevel_parent_container,
|
ToplevelNode, VrrMode, WorkspaceNode, toplevel_create_split, toplevel_parent_container,
|
||||||
|
|
@ -42,11 +46,6 @@ use {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
jay_config::{
|
jay_config::{
|
||||||
protocol::{
|
|
||||||
ClientCriterionPayload, ClientCriterionStringField, ClientMessage, ConfigHandler,
|
|
||||||
GenericCriterionPayload, PollableId, Response, ServerMessage, Unref,
|
|
||||||
WindowCriterionPayload, WindowCriterionStringField, WireMode, WorkspaceSource,
|
|
||||||
},
|
|
||||||
Axis, Direction, Workspace,
|
Axis, Direction, Workspace,
|
||||||
client::{Client as ConfigClient, ClientMatcher},
|
client::{Client as ConfigClient, ClientMatcher},
|
||||||
input::{
|
input::{
|
||||||
|
|
@ -62,7 +61,12 @@ use {
|
||||||
},
|
},
|
||||||
keyboard::{Group, Keymap, mods::Modifiers, syms::KeySym},
|
keyboard::{Group, Keymap, mods::Modifiers, syms::KeySym},
|
||||||
logging::LogLevel as ConfigLogLevel,
|
logging::LogLevel as ConfigLogLevel,
|
||||||
theme::{BarPosition, colors::Colorable, sized::Resizable},
|
protocol::{
|
||||||
|
ClientCriterionPayload, ClientCriterionStringField, ClientMessage, ConfigHandler,
|
||||||
|
GenericCriterionPayload, PollableId, Response, ServerMessage, Unref,
|
||||||
|
WindowCriterionPayload, WindowCriterionStringField, WireMode, WorkspaceSource,
|
||||||
|
},
|
||||||
|
|
||||||
timer::Timer as JayTimer,
|
timer::Timer as JayTimer,
|
||||||
video::{
|
video::{
|
||||||
BlendSpace as ConfigBlendSpace, ColorSpace, Connector, DrmDevice, Eotf as ConfigEotf,
|
BlendSpace as ConfigBlendSpace, ColorSpace, Connector, DrmDevice, Eotf as ConfigEotf,
|
||||||
|
|
@ -73,6 +77,7 @@ use {
|
||||||
workspace::WorkspaceDisplayOrder,
|
workspace::WorkspaceDisplayOrder,
|
||||||
xwayland::XScalingMode,
|
xwayland::XScalingMode,
|
||||||
},
|
},
|
||||||
|
jay_criteria::{CritLiteralOrRegex, CritMgrExt, CritTarget, CritUpstreamNode},
|
||||||
kbvm::Keycode,
|
kbvm::Keycode,
|
||||||
log::Level,
|
log::Level,
|
||||||
regex::Regex,
|
regex::Regex,
|
||||||
|
|
@ -82,7 +87,7 @@ use {
|
||||||
hash::Hash,
|
hash::Hash,
|
||||||
ops::Deref,
|
ops::Deref,
|
||||||
rc::{Rc, Weak},
|
rc::{Rc, Weak},
|
||||||
time::{Duration, SystemTime},
|
|
||||||
},
|
},
|
||||||
thiserror::Error,
|
thiserror::Error,
|
||||||
uapi::{OwnedFd, c, fcntl_dupfd_cloexec},
|
uapi::{OwnedFd, c, fcntl_dupfd_cloexec},
|
||||||
|
|
@ -209,7 +214,6 @@ impl ConfigProxyHandler {
|
||||||
|
|
||||||
self.window_matcher_leafs.clear();
|
self.window_matcher_leafs.clear();
|
||||||
self.window_matchers.clear();
|
self.window_matchers.clear();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn send(&self, msg: &ServerMessage) {
|
pub fn send(&self, msg: &ServerMessage) {
|
||||||
|
|
@ -310,7 +314,6 @@ impl ConfigProxyHandler {
|
||||||
}
|
}
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Error)]
|
#[derive(Debug, Error)]
|
||||||
|
|
|
||||||
|
|
@ -729,7 +729,7 @@ impl ConfigProxyHandler {
|
||||||
// Removed feature; kept for binary protocol compatibility.
|
// Removed feature; kept for binary protocol compatibility.
|
||||||
}
|
}
|
||||||
ClientMessage::SetTabTitleAlign { align } => {
|
ClientMessage::SetTabTitleAlign { align } => {
|
||||||
use crate::theme::TabTitleAlign;
|
use jay_theme::TabTitleAlign;
|
||||||
let val = match align {
|
let val = match align {
|
||||||
1 => TabTitleAlign::Center,
|
1 => TabTitleAlign::Center,
|
||||||
2 => TabTitleAlign::End,
|
2 => TabTitleAlign::End,
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ impl ConfigProxyHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(super) fn handle_set_corner_radius(&self, radius: f32) {
|
pub(super) fn handle_set_corner_radius(&self, radius: f32) {
|
||||||
use crate::theme::CornerRadius;
|
use jay_theme::CornerRadius;
|
||||||
let radius = radius.max(0.0).min(1000.0);
|
let radius = radius.max(0.0).min(1000.0);
|
||||||
self.state
|
self.state
|
||||||
.theme
|
.theme
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,13 @@
|
||||||
|
use jay_io_uring::IoUring;
|
||||||
|
use jay_eventfd_cache::EventfdCache;
|
||||||
|
use jay_async_engine::{AsyncEngine, SpawnedFuture};
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::{AsyncEngine, SpawnedFuture},
|
|
||||||
eventfd_cache::EventfdCache,
|
|
||||||
format::{FORMATS, Format},
|
format::{FORMATS, Format},
|
||||||
gfx_api::FdSync,
|
gfx_api::FdSync,
|
||||||
io_uring::IoUring,
|
|
||||||
utils::{
|
utils::{
|
||||||
clonecell::CloneCell,
|
clonecell::CloneCell,
|
||||||
errorfmt::ErrorFmt,
|
errorfmt::ErrorFmt,
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
|
use jay_geometry::{Rect, Region};
|
||||||
use {
|
use {
|
||||||
super::{CopyDeviceCopy, CopyDeviceCopyType, CopyDeviceError, Pending},
|
super::{CopyDeviceCopy, CopyDeviceCopyType, CopyDeviceError, Pending},
|
||||||
crate::{
|
crate::{
|
||||||
gfx_api::FdSync,
|
gfx_api::FdSync,
|
||||||
rect::{Rect, Region},
|
|
||||||
vulkan_core::sync::VulkanDeviceSyncExt,
|
vulkan_core::sync::VulkanDeviceSyncExt,
|
||||||
},
|
},
|
||||||
arrayvec::ArrayVec,
|
arrayvec::ArrayVec,
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,12 @@
|
||||||
|
use jay_io_uring::IoUring;
|
||||||
|
use jay_eventfd_cache::EventfdCache;
|
||||||
|
use jay_async_engine::AsyncEngine;
|
||||||
use {
|
use {
|
||||||
super::PhysicalCopyDevice,
|
super::PhysicalCopyDevice,
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::AsyncEngine,
|
|
||||||
eventfd_cache::EventfdCache,
|
|
||||||
io_uring::IoUring,
|
|
||||||
utils::{copyhashmap::CopyHashMap, errorfmt::ErrorFmt},
|
utils::{copyhashmap::CopyHashMap, errorfmt::ErrorFmt},
|
||||||
},
|
},
|
||||||
std::rc::Rc,
|
std::rc::Rc,
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
pub use jay_cpu_worker::*;
|
|
||||||
|
|
@ -1,4 +1,2 @@
|
||||||
pub mod clm;
|
pub mod clm;
|
||||||
pub mod tlm;
|
pub mod tlm;
|
||||||
|
|
||||||
pub use jay_criteria::*;
|
|
||||||
|
|
|
||||||
|
|
@ -3,29 +3,29 @@ pub mod clm_matchers;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
client::{Client, ClientId},
|
client::{Client, ClientId},
|
||||||
criteria::{
|
criteria::clm::clm_matchers::{
|
||||||
CritDestroyListener, CritLiteralOrRegex, CritMatcherId, CritMatcherIds, CritMgrExt,
|
clmm_id::ClmMatchId,
|
||||||
CritUpstreamNode, FixedRootMatcher, RootMatcherMap,
|
clmm_is_xwayland::ClmMatchIsXwayland,
|
||||||
clm::clm_matchers::{
|
clmm_pid::ClmMatchPid,
|
||||||
clmm_id::ClmMatchId,
|
clmm_sandboxed::ClmMatchSandboxed,
|
||||||
clmm_is_xwayland::ClmMatchIsXwayland,
|
clmm_string::{
|
||||||
clmm_pid::ClmMatchPid,
|
ClmMatchComm, ClmMatchExe, ClmMatchSandboxAppId, ClmMatchSandboxEngine,
|
||||||
clmm_sandboxed::ClmMatchSandboxed,
|
ClmMatchSandboxInstanceId, ClmMatchTag,
|
||||||
clmm_string::{
|
|
||||||
ClmMatchComm, ClmMatchExe, ClmMatchSandboxAppId, ClmMatchSandboxEngine,
|
|
||||||
ClmMatchSandboxInstanceId, ClmMatchTag,
|
|
||||||
},
|
|
||||||
clmm_uid::ClmMatchUid,
|
|
||||||
},
|
},
|
||||||
crit_graph::{
|
clmm_uid::ClmMatchUid,
|
||||||
CritMgr, CritRoot, CritRootFixed, CritTarget, CritTargetOwner, WeakCritTargetOwner,
|
|
||||||
},
|
|
||||||
crit_leaf::{CritLeafEvent, CritLeafMatcher},
|
|
||||||
crit_matchers::critm_constant::CritMatchConstant,
|
|
||||||
},
|
},
|
||||||
state::State,
|
state::State,
|
||||||
utils::{copyhashmap::CopyHashMap, hash_map_ext::HashMapExt, queue::AsyncQueue},
|
utils::{copyhashmap::CopyHashMap, hash_map_ext::HashMapExt, queue::AsyncQueue},
|
||||||
},
|
},
|
||||||
|
jay_criteria::{
|
||||||
|
CritDestroyListener, CritLiteralOrRegex, CritMatcherId, CritMatcherIds, CritMgrExt,
|
||||||
|
CritUpstreamNode, FixedRootMatcher, RootMatcherMap,
|
||||||
|
crit_graph::{
|
||||||
|
CritMgr, CritRoot, CritRootFixed, CritTarget, CritTargetOwner, WeakCritTargetOwner,
|
||||||
|
},
|
||||||
|
crit_leaf::{CritLeafEvent, CritLeafMatcher},
|
||||||
|
crit_matchers::critm_constant::CritMatchConstant,
|
||||||
|
},
|
||||||
linearize::static_map,
|
linearize::static_map,
|
||||||
std::{
|
std::{
|
||||||
marker::PhantomData,
|
marker::PhantomData,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
macro_rules! fixed_root_criterion {
|
macro_rules! fixed_root_criterion {
|
||||||
($ty:ty, $field:ident) => {
|
($ty:ty, $field:ident) => {
|
||||||
impl crate::criteria::crit_graph::CritFixedRootCriterionBase<crate::client::Client>
|
impl jay_criteria::crit_graph::CritFixedRootCriterionBase<crate::client::Client>
|
||||||
for $ty
|
for $ty
|
||||||
{
|
{
|
||||||
fn constant(&self) -> bool {
|
fn constant(&self) -> bool {
|
||||||
|
|
@ -10,7 +10,7 @@ macro_rules! fixed_root_criterion {
|
||||||
fn not<'a>(
|
fn not<'a>(
|
||||||
&self,
|
&self,
|
||||||
mgr: &'a crate::criteria::clm::ClMatcherManager,
|
mgr: &'a crate::criteria::clm::ClMatcherManager,
|
||||||
) -> &'a crate::criteria::FixedRootMatcher<crate::client::Client, Self> {
|
) -> &'a jay_criteria::FixedRootMatcher<crate::client::Client, Self> {
|
||||||
&mgr.$field
|
&mgr.$field
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
client::{Client, ClientId},
|
client::{Client, ClientId},
|
||||||
criteria::{RootMatcherMap, clm::RootMatchers, crit_graph::CritRootCriterion},
|
criteria::clm::RootMatchers,
|
||||||
},
|
},
|
||||||
|
jay_criteria::{RootMatcherMap, crit_graph::CritRootCriterion},
|
||||||
};
|
};
|
||||||
|
|
||||||
pub struct ClmMatchId(pub ClientId);
|
pub struct ClmMatchId(pub ClientId);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
use {
|
use {crate::client::Client, jay_criteria::crit_graph::CritFixedRootCriterion};
|
||||||
crate::{client::Client, criteria::crit_graph::CritFixedRootCriterion},
|
|
||||||
};
|
|
||||||
|
|
||||||
pub struct ClmMatchIsXwayland(pub bool);
|
pub struct ClmMatchIsXwayland(pub bool);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{client::Client, criteria::clm::RootMatchers},
|
||||||
client::Client,
|
jay_criteria::{RootMatcherMap, crit_graph::CritRootCriterion},
|
||||||
criteria::{RootMatcherMap, clm::RootMatchers, crit_graph::CritRootCriterion},
|
|
||||||
},
|
|
||||||
uapi::c,
|
uapi::c,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
use {
|
use {crate::client::Client, jay_criteria::crit_graph::CritFixedRootCriterion};
|
||||||
crate::{client::Client, criteria::crit_graph::CritFixedRootCriterion},
|
|
||||||
};
|
|
||||||
|
|
||||||
pub struct ClmMatchSandboxed(pub bool);
|
pub struct ClmMatchSandboxed(pub bool);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,9 @@
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
client::{Client, ClientMetadata},
|
client::{Client, ClientMetadata},
|
||||||
criteria::{
|
criteria::clm::{ClmRootMatcherMap, RootMatchers},
|
||||||
clm::{ClmRootMatcherMap, RootMatchers},
|
|
||||||
crit_matchers::critm_string::{CritMatchString, StringAccess},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
jay_criteria::crit_matchers::critm_string::{CritMatchString, StringAccess},
|
||||||
std::marker::PhantomData,
|
std::marker::PhantomData,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{client::Client, criteria::clm::RootMatchers},
|
||||||
client::Client,
|
jay_criteria::{RootMatcherMap, crit_graph::CritRootCriterion},
|
||||||
criteria::{RootMatcherMap, clm::RootMatchers, crit_graph::CritRootCriterion},
|
|
||||||
},
|
|
||||||
uapi::c,
|
uapi::c,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,7 @@ pub mod tlm_matchers;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
criteria::{
|
criteria::{
|
||||||
CritDestroyListener, CritLiteralOrRegex, CritMatcherId, CritMatcherIds, CritMgrExt,
|
|
||||||
CritUpstreamNode, FixedRootMatcher, RootMatcherMap,
|
|
||||||
clm::ClmUpstreamNode,
|
clm::ClmUpstreamNode,
|
||||||
crit_graph::{
|
|
||||||
CritMgr, CritRoot, CritRootFixed, CritTarget, CritTargetOwner, WeakCritTargetOwner,
|
|
||||||
},
|
|
||||||
crit_leaf::{CritLeafEvent, CritLeafMatcher},
|
|
||||||
crit_matchers::critm_constant::CritMatchConstant,
|
|
||||||
tlm::tlm_matchers::{
|
tlm::tlm_matchers::{
|
||||||
tlmm_client::TlmMatchClient,
|
tlmm_client::TlmMatchClient,
|
||||||
tlmm_content_type::TlmMatchContentType,
|
tlmm_content_type::TlmMatchContentType,
|
||||||
|
|
@ -33,6 +26,15 @@ use {
|
||||||
utils::{copyhashmap::CopyHashMap, hash_map_ext::HashMapExt, queue::AsyncQueue},
|
utils::{copyhashmap::CopyHashMap, hash_map_ext::HashMapExt, queue::AsyncQueue},
|
||||||
},
|
},
|
||||||
jay_config::window::{ContentType, WindowType},
|
jay_config::window::{ContentType, WindowType},
|
||||||
|
jay_criteria::{
|
||||||
|
CritDestroyListener, CritLiteralOrRegex, CritMatcherId, CritMatcherIds, CritMgrExt,
|
||||||
|
CritUpstreamNode, FixedRootMatcher, RootMatcherMap,
|
||||||
|
crit_graph::{
|
||||||
|
CritMgr, CritRoot, CritRootFixed, CritTarget, CritTargetOwner, WeakCritTargetOwner,
|
||||||
|
},
|
||||||
|
crit_leaf::{CritLeafEvent, CritLeafMatcher},
|
||||||
|
crit_matchers::critm_constant::CritMatchConstant,
|
||||||
|
},
|
||||||
linearize::static_map,
|
linearize::static_map,
|
||||||
std::{
|
std::{
|
||||||
marker::PhantomData,
|
marker::PhantomData,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
macro_rules! fixed_root_criterion {
|
macro_rules! fixed_root_criterion {
|
||||||
($ty:ty, $field:ident) => {
|
($ty:ty, $field:ident) => {
|
||||||
impl crate::criteria::crit_graph::CritFixedRootCriterionBase<crate::tree::ToplevelData>
|
impl jay_criteria::crit_graph::CritFixedRootCriterionBase<crate::tree::ToplevelData>
|
||||||
for $ty
|
for $ty
|
||||||
{
|
{
|
||||||
fn constant(&self) -> bool {
|
fn constant(&self) -> bool {
|
||||||
|
|
@ -10,7 +10,7 @@ macro_rules! fixed_root_criterion {
|
||||||
fn not<'a>(
|
fn not<'a>(
|
||||||
&self,
|
&self,
|
||||||
mgr: &'a crate::criteria::tlm::TlMatcherManager,
|
mgr: &'a crate::criteria::tlm::TlMatcherManager,
|
||||||
) -> &'a crate::criteria::FixedRootMatcher<crate::tree::ToplevelData, Self> {
|
) -> &'a jay_criteria::FixedRootMatcher<crate::tree::ToplevelData, Self> {
|
||||||
&mgr.$field
|
&mgr.$field
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,18 +2,20 @@ use {
|
||||||
crate::{
|
crate::{
|
||||||
client::Client,
|
client::Client,
|
||||||
criteria::{
|
criteria::{
|
||||||
CritMatcherId, CritUpstreamNode,
|
|
||||||
clm::ClmUpstreamNode,
|
clm::ClmUpstreamNode,
|
||||||
crit_graph::{
|
|
||||||
CritDownstream, CritDownstreamData, CritMgr, CritUpstreamData,
|
|
||||||
CritUpstreamNodeBase, CritUpstreamNodeData,
|
|
||||||
},
|
|
||||||
crit_per_target_data::{CritDestroyListenerBase, CritPerTargetData},
|
|
||||||
tlm::TlMatcherManager,
|
tlm::TlMatcherManager,
|
||||||
},
|
},
|
||||||
state::State,
|
state::State,
|
||||||
tree::{ToplevelData, ToplevelNodeBase},
|
tree::{ToplevelData, ToplevelNodeBase},
|
||||||
},
|
},
|
||||||
|
jay_criteria::{
|
||||||
|
CritMatcherId, CritUpstreamNode,
|
||||||
|
crit_graph::{
|
||||||
|
CritDownstream, CritDownstreamData, CritMgr, CritUpstreamData, CritUpstreamNodeBase,
|
||||||
|
CritUpstreamNodeData,
|
||||||
|
},
|
||||||
|
crit_per_target_data::{CritDestroyListenerBase, CritPerTargetData},
|
||||||
|
},
|
||||||
std::{rc::Rc, slice},
|
std::{rc::Rc, slice},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,12 @@
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
criteria::{
|
criteria::tlm::{RootMatchers, TlmRootMatcherMap},
|
||||||
crit_graph::CritRootCriterion,
|
|
||||||
tlm::{RootMatchers, TlmRootMatcherMap},
|
|
||||||
},
|
|
||||||
ifs::wp_content_type_v1::ContentTypeExt,
|
ifs::wp_content_type_v1::ContentTypeExt,
|
||||||
tree::ToplevelData,
|
tree::ToplevelData,
|
||||||
utils::bitflags::BitflagsExt,
|
utils::bitflags::BitflagsExt,
|
||||||
},
|
},
|
||||||
jay_config::window::ContentType,
|
jay_config::window::ContentType,
|
||||||
|
jay_criteria::crit_graph::CritRootCriterion,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub struct TlmMatchContentType {
|
pub struct TlmMatchContentType {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
use crate::{criteria::crit_graph::CritFixedRootCriterion, tree::ToplevelData};
|
use {crate::tree::ToplevelData, jay_criteria::crit_graph::CritFixedRootCriterion};
|
||||||
|
|
||||||
pub struct TlmMatchFloating(pub bool);
|
pub struct TlmMatchFloating(pub bool);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
use crate::{criteria::crit_graph::CritFixedRootCriterion, tree::ToplevelData};
|
use {crate::tree::ToplevelData, jay_criteria::crit_graph::CritFixedRootCriterion};
|
||||||
|
|
||||||
pub struct TlmMatchFullscreen(pub bool);
|
pub struct TlmMatchFullscreen(pub bool);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
use crate::{criteria::crit_graph::CritFixedRootCriterion, tree::ToplevelData};
|
use {crate::tree::ToplevelData, jay_criteria::crit_graph::CritFixedRootCriterion};
|
||||||
|
|
||||||
pub struct TlmMatchJustMapped(pub bool);
|
pub struct TlmMatchJustMapped(pub bool);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
criteria::{
|
criteria::tlm::{RootMatchers, TlmRootMatcherMap},
|
||||||
crit_graph::CritRootCriterion,
|
|
||||||
tlm::{RootMatchers, TlmRootMatcherMap},
|
|
||||||
},
|
|
||||||
tree::ToplevelData,
|
tree::ToplevelData,
|
||||||
utils::bitflags::BitflagsExt,
|
utils::bitflags::BitflagsExt,
|
||||||
},
|
},
|
||||||
jay_config::window::WindowType,
|
jay_config::window::WindowType,
|
||||||
|
jay_criteria::crit_graph::CritRootCriterion,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub struct TlmMatchKind {
|
pub struct TlmMatchKind {
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,9 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
criteria::{
|
criteria::tlm::{RootMatchers, TlmRootMatcherMap},
|
||||||
crit_graph::CritRootCriterion,
|
|
||||||
tlm::{RootMatchers, TlmRootMatcherMap},
|
|
||||||
},
|
|
||||||
ifs::wl_seat::SeatId,
|
ifs::wl_seat::SeatId,
|
||||||
tree::ToplevelData,
|
tree::ToplevelData,
|
||||||
};
|
};
|
||||||
|
use jay_criteria::crit_graph::CritRootCriterion;
|
||||||
|
|
||||||
pub struct TlmMatchSeatFocus {
|
pub struct TlmMatchSeatFocus {
|
||||||
id: SeatId,
|
id: SeatId,
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
criteria::{
|
criteria::tlm::{RootMatchers, TlmRootMatcherMap},
|
||||||
crit_matchers::critm_string::{CritMatchString, StringAccess},
|
|
||||||
tlm::{RootMatchers, TlmRootMatcherMap},
|
|
||||||
},
|
|
||||||
tree::{ToplevelData, ToplevelType},
|
tree::{ToplevelData, ToplevelType},
|
||||||
};
|
};
|
||||||
|
use jay_criteria::crit_matchers::critm_string::{CritMatchString, StringAccess};
|
||||||
|
|
||||||
pub type TlmMatchString<T> = CritMatchString<ToplevelData, T>;
|
pub type TlmMatchString<T> = CritMatchString<ToplevelData, T>;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
use crate::{criteria::crit_graph::CritFixedRootCriterion, tree::ToplevelData};
|
use {crate::tree::ToplevelData, jay_criteria::crit_graph::CritFixedRootCriterion};
|
||||||
|
|
||||||
pub struct TlmMatchUrgent(pub bool);
|
pub struct TlmMatchUrgent(pub bool);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
use crate::{criteria::crit_graph::CritFixedRootCriterion, tree::ToplevelData};
|
use {crate::tree::ToplevelData, jay_criteria::crit_graph::CritFixedRootCriterion};
|
||||||
|
|
||||||
pub struct TlmMatchVisible(pub bool);
|
pub struct TlmMatchVisible(pub bool);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,19 @@
|
||||||
|
use jay_time::Time;
|
||||||
|
use std::time::Duration;
|
||||||
|
use jay_geometry::Rect;
|
||||||
|
use jay_async_engine::AsyncEngine;
|
||||||
|
use jay_units::fixed::Fixed;
|
||||||
|
use jay_units::scale::Scale;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::AsyncEngine,
|
|
||||||
cmm::cmm_render_intent::RenderIntent,
|
cmm::cmm_render_intent::RenderIntent,
|
||||||
fixed::Fixed,
|
|
||||||
format::ARGB8888,
|
format::ARGB8888,
|
||||||
gfx_api::{AcquireSync, AlphaMode, GfxContext, GfxError, GfxTexture, ReleaseSync},
|
gfx_api::{AcquireSync, AlphaMode, GfxContext, GfxError, GfxTexture, ReleaseSync},
|
||||||
rect::Rect,
|
|
||||||
renderer::Renderer,
|
renderer::Renderer,
|
||||||
scale::Scale,
|
|
||||||
state::State,
|
state::State,
|
||||||
time::Time,
|
|
||||||
tree::OutputNode,
|
tree::OutputNode,
|
||||||
utils::{errorfmt::ErrorFmt, numcell::NumCell, smallmap::SmallMapMut},
|
utils::{errorfmt::ErrorFmt, numcell::NumCell, smallmap::SmallMapMut},
|
||||||
},
|
},
|
||||||
|
|
@ -29,7 +33,7 @@ use {
|
||||||
rc::Rc,
|
rc::Rc,
|
||||||
slice, str,
|
slice, str,
|
||||||
sync::LazyLock,
|
sync::LazyLock,
|
||||||
time::Duration,
|
|
||||||
},
|
},
|
||||||
thiserror::Error,
|
thiserror::Error,
|
||||||
uapi::Bytes,
|
uapi::Bytes,
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,12 @@
|
||||||
|
use jay_geometry::Rect;
|
||||||
|
use jay_units::fixed::Fixed;
|
||||||
|
use jay_units::scale::Scale;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
backend::HardwareCursorUpdate,
|
backend::HardwareCursorUpdate,
|
||||||
cursor::{Cursor, DEFAULT_CURSOR_SIZE, KnownCursor},
|
cursor::{Cursor, DEFAULT_CURSOR_SIZE, KnownCursor},
|
||||||
fixed::Fixed,
|
|
||||||
gfx_api::{AcquireSync, ReleaseSync},
|
gfx_api::{AcquireSync, ReleaseSync},
|
||||||
rect::Rect,
|
|
||||||
scale::Scale,
|
|
||||||
state::State,
|
state::State,
|
||||||
tree::OutputNode,
|
tree::OutputNode,
|
||||||
utils::{
|
utils::{
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,18 @@
|
||||||
|
use jay_time::Time;
|
||||||
|
use std::time::Duration;
|
||||||
|
use jay_theme::Color;
|
||||||
|
use jay_geometry::{Rect, Region};
|
||||||
|
use jay_async_engine::AsyncEngine;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::AsyncEngine,
|
|
||||||
cmm::{cmm_manager::ColorManager, cmm_render_intent::RenderIntent},
|
cmm::{cmm_manager::ColorManager, cmm_render_intent::RenderIntent},
|
||||||
ifs::wl_output::WlOutputGlobal,
|
ifs::wl_output::WlOutputGlobal,
|
||||||
rect::{Rect, Region},
|
|
||||||
renderer::renderer_base::RendererBase,
|
renderer::renderer_base::RendererBase,
|
||||||
state::State,
|
state::State,
|
||||||
theme::Color,
|
|
||||||
time::Time,
|
|
||||||
utils::{asyncevent::AsyncEvent, errorfmt::ErrorFmt, timer::TimerFd},
|
utils::{asyncevent::AsyncEvent, errorfmt::ErrorFmt, timer::TimerFd},
|
||||||
},
|
},
|
||||||
isnt::std_1::primitive::IsntSliceExt,
|
isnt::std_1::primitive::IsntSliceExt,
|
||||||
|
|
@ -15,7 +20,7 @@ use {
|
||||||
cell::{Cell, RefCell},
|
cell::{Cell, RefCell},
|
||||||
collections::VecDeque,
|
collections::VecDeque,
|
||||||
rc::Rc,
|
rc::Rc,
|
||||||
time::Duration,
|
|
||||||
},
|
},
|
||||||
uapi::c::CLOCK_MONOTONIC,
|
uapi::c::CLOCK_MONOTONIC,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
pub use jay_dbus_core::*;
|
pub use jay_dbus_core::*;
|
||||||
|
use jay_io_uring::IoUring;
|
||||||
|
use jay_async_engine::{AsyncEngine, SpawnedFuture};
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::{AsyncEngine, SpawnedFuture},
|
|
||||||
io_uring::IoUring,
|
|
||||||
utils::{
|
utils::{
|
||||||
bufio::BufIo,
|
bufio::BufIo,
|
||||||
clonecell::CloneCell,
|
clonecell::CloneCell,
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
|
use jay_io_uring::IoUring;
|
||||||
|
use jay_async_engine::AsyncEngine;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::AsyncEngine,
|
|
||||||
dbus::{DbusError, DbusHolder, DbusSocket, auth::handle_auth},
|
dbus::{DbusError, DbusHolder, DbusSocket, auth::handle_auth},
|
||||||
io_uring::IoUring,
|
|
||||||
utils::{
|
utils::{
|
||||||
bufio::BufIo, errorfmt::ErrorFmt, numcell::NumCell, oserror::OsErrorExt2,
|
bufio::BufIo, errorfmt::ErrorFmt, numcell::NumCell, oserror::OsErrorExt2,
|
||||||
run_toplevel::RunToplevel,
|
run_toplevel::RunToplevel,
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
pub use jay_edid::*;
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
|
use jay_async_engine::SpawnedFuture;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::SpawnedFuture,
|
|
||||||
state::State,
|
state::State,
|
||||||
utils::{
|
utils::{
|
||||||
errorfmt::ErrorFmt,
|
errorfmt::ErrorFmt,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
pub use crate::ei::ei_client::ei_error::{EiClientError, EiParserError};
|
pub use crate::ei::ei_client::ei_error::{EiClientError, EiParserError};
|
||||||
|
use jay_async_engine::SpawnedFuture;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::SpawnedFuture,
|
|
||||||
client::ClientId,
|
client::ClientId,
|
||||||
ei::{
|
ei::{
|
||||||
EiContext, EiInterfaceVersion,
|
EiContext, EiInterfaceVersion,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
|
use jay_async_engine::Phase;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::Phase,
|
|
||||||
ei::{
|
ei::{
|
||||||
ei_client::{EiClient, ei_error::EiClientError},
|
ei_client::{EiClient, ei_error::EiClientError},
|
||||||
ei_object::EiObjectId,
|
ei_object::EiObjectId,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
use jay_geometry::Rect;
|
||||||
|
use jay_units::fixed::Fixed;
|
||||||
|
use jay_units::scale::Scale;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
backend::{ButtonState, KeyState, ScrollAxis},
|
backend::{ButtonState, KeyState, ScrollAxis},
|
||||||
|
|
@ -6,11 +9,9 @@ use {
|
||||||
ei_ifs::{ei_seat::EiSeat, ei_touchscreen::TouchChange},
|
ei_ifs::{ei_seat::EiSeat, ei_touchscreen::TouchChange},
|
||||||
ei_object::{EiObject, EiVersion},
|
ei_object::{EiObject, EiVersion},
|
||||||
},
|
},
|
||||||
fixed::Fixed,
|
|
||||||
ifs::wl_seat::{CursorPositionType, PX_PER_SCROLL},
|
ifs::wl_seat::{CursorPositionType, PX_PER_SCROLL},
|
||||||
leaks::Tracker,
|
leaks::Tracker,
|
||||||
rect::Rect,
|
|
||||||
scale::Scale,
|
|
||||||
utils::{copyhashmap::CopyHashMap, syncqueue::SyncQueue},
|
utils::{copyhashmap::CopyHashMap, syncqueue::SyncQueue},
|
||||||
wire_ei::{
|
wire_ei::{
|
||||||
EiDeviceId,
|
EiDeviceId,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
use jay_keyboard::KeyboardState;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
backend::KeyState,
|
backend::KeyState,
|
||||||
|
|
@ -6,7 +7,6 @@ use {
|
||||||
ei_ifs::ei_device::{EiDevice, EiDeviceInterface},
|
ei_ifs::ei_device::{EiDevice, EiDeviceInterface},
|
||||||
ei_object::{EiObject, EiVersion},
|
ei_object::{EiObject, EiVersion},
|
||||||
},
|
},
|
||||||
keyboard::KeyboardState,
|
|
||||||
leaks::Tracker,
|
leaks::Tracker,
|
||||||
wire_ei::{
|
wire_ei::{
|
||||||
EiKeyboardId,
|
EiKeyboardId,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
use jay_units::fixed::Fixed;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
ei::{
|
ei::{
|
||||||
|
|
@ -5,7 +6,6 @@ use {
|
||||||
ei_ifs::ei_device::{EiDevice, EiDeviceInterface},
|
ei_ifs::ei_device::{EiDevice, EiDeviceInterface},
|
||||||
ei_object::{EiObject, EiVersion},
|
ei_object::{EiObject, EiVersion},
|
||||||
},
|
},
|
||||||
fixed::Fixed,
|
|
||||||
leaks::Tracker,
|
leaks::Tracker,
|
||||||
wire_ei::{
|
wire_ei::{
|
||||||
EiPointerId,
|
EiPointerId,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
use jay_units::fixed::Fixed;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
ei::{
|
ei::{
|
||||||
|
|
@ -5,7 +6,6 @@ use {
|
||||||
ei_ifs::ei_device::{EiDevice, EiDeviceInterface},
|
ei_ifs::ei_device::{EiDevice, EiDeviceInterface},
|
||||||
ei_object::{EiObject, EiVersion},
|
ei_object::{EiObject, EiVersion},
|
||||||
},
|
},
|
||||||
fixed::Fixed,
|
|
||||||
leaks::Tracker,
|
leaks::Tracker,
|
||||||
wire_ei::{
|
wire_ei::{
|
||||||
EiPointerAbsoluteId,
|
EiPointerAbsoluteId,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
use jay_units::fixed::Fixed;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
ei::{
|
ei::{
|
||||||
|
|
@ -5,7 +6,6 @@ use {
|
||||||
ei_ifs::ei_device::{EiDevice, EiDeviceInterface},
|
ei_ifs::ei_device::{EiDevice, EiDeviceInterface},
|
||||||
ei_object::{EiObject, EiVersion},
|
ei_object::{EiObject, EiVersion},
|
||||||
},
|
},
|
||||||
fixed::Fixed,
|
|
||||||
ifs::wl_seat::wl_pointer::{HORIZONTAL_SCROLL, VERTICAL_SCROLL},
|
ifs::wl_seat::wl_pointer::{HORIZONTAL_SCROLL, VERTICAL_SCROLL},
|
||||||
leaks::Tracker,
|
leaks::Tracker,
|
||||||
wire_ei::{
|
wire_ei::{
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
use jay_units::fixed::Fixed;
|
||||||
|
use jay_keyboard::{DynKeyboardState, KeyboardState, KeyboardStateId};
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
backend::{ButtonState, KeyState},
|
backend::{ButtonState, KeyState},
|
||||||
|
|
@ -15,12 +17,10 @@ use {
|
||||||
},
|
},
|
||||||
ei_object::{EiInterface, EiObject, EiVersion},
|
ei_object::{EiInterface, EiObject, EiVersion},
|
||||||
},
|
},
|
||||||
fixed::Fixed,
|
|
||||||
ifs::wl_seat::{
|
ifs::wl_seat::{
|
||||||
PhysicalKeyboardId, WlSeatGlobal,
|
PhysicalKeyboardId, WlSeatGlobal,
|
||||||
wl_pointer::{HORIZONTAL_SCROLL, PendingScroll, VERTICAL_SCROLL},
|
wl_pointer::{HORIZONTAL_SCROLL, PendingScroll, VERTICAL_SCROLL},
|
||||||
},
|
},
|
||||||
keyboard::{DynKeyboardState, KeyboardState, KeyboardStateId},
|
|
||||||
leaks::Tracker,
|
leaks::Tracker,
|
||||||
tree::Node,
|
tree::Node,
|
||||||
utils::{array, bitflags::BitflagsExt, clonecell::CloneCell},
|
utils::{array, bitflags::BitflagsExt, clonecell::CloneCell},
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
use jay_units::fixed::Fixed;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
ei::{
|
ei::{
|
||||||
|
|
@ -5,7 +6,6 @@ use {
|
||||||
ei_ifs::ei_device::{EiDevice, EiDeviceInterface},
|
ei_ifs::ei_device::{EiDevice, EiDeviceInterface},
|
||||||
ei_object::{EiObject, EiVersion},
|
ei_object::{EiObject, EiVersion},
|
||||||
},
|
},
|
||||||
fixed::Fixed,
|
|
||||||
leaks::Tracker,
|
leaks::Tracker,
|
||||||
utils::clonecell::UnsafeCellCloneSafe,
|
utils::clonecell::UnsafeCellCloneSafe,
|
||||||
wire_ei::{
|
wire_ei::{
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
pub use jay_eventfd_cache::*;
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
pub use jay_units::fixed::*;
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
use jay_io_uring::IoUring;
|
||||||
use {
|
use {
|
||||||
bincode::Options,
|
bincode::Options,
|
||||||
serde::{Serialize, de::DeserializeOwned},
|
serde::{Serialize, de::DeserializeOwned},
|
||||||
|
|
@ -7,7 +8,7 @@ use {
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
forker::{ForkerError, protocol::bincode_ops},
|
forker::{ForkerError, protocol::bincode_ops},
|
||||||
io_uring::IoUring,
|
|
||||||
utils::{
|
utils::{
|
||||||
buf::DynamicBuf,
|
buf::DynamicBuf,
|
||||||
buffd::{BufFdIn, BufFdOut},
|
buffd::{BufFdIn, BufFdOut},
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
|
use jay_async_engine::SpawnedFuture;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::SpawnedFuture,
|
|
||||||
compositor::LIBEI_SOCKET,
|
compositor::LIBEI_SOCKET,
|
||||||
forker::{
|
forker::{
|
||||||
ForkerError,
|
ForkerError,
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
|
use jay_io_uring::IoUring;
|
||||||
|
use jay_async_engine::{AsyncEngine, SpawnedFuture};
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::{AsyncEngine, SpawnedFuture},
|
|
||||||
compositor::{DISPLAY, WAYLAND_DISPLAY},
|
compositor::{DISPLAY, WAYLAND_DISPLAY},
|
||||||
forker::{
|
forker::{
|
||||||
io::{IoIn, IoOut},
|
io::{IoIn, IoOut},
|
||||||
protocol::{ForkerMessage, ServerMessage, bincode_ops},
|
protocol::{ForkerMessage, ServerMessage, bincode_ops},
|
||||||
},
|
},
|
||||||
io_uring::IoUring,
|
|
||||||
utils::{
|
utils::{
|
||||||
clone3::{Forked, fork_with_pidfd},
|
clone3::{Forked, fork_with_pidfd},
|
||||||
copyhashmap::CopyHashMap,
|
copyhashmap::CopyHashMap,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,10 @@
|
||||||
|
use jay_theme::Color;
|
||||||
|
use jay_io_uring::{IoUring, IoUringError};
|
||||||
|
use jay_geometry::{Rect, Region};
|
||||||
|
use jay_eventfd_cache::Eventfd;
|
||||||
|
use jay_cpu_worker::CpuWorker;
|
||||||
|
use jay_units::fixed::Fixed;
|
||||||
|
use jay_units::scale::Scale;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
allocator::Allocator,
|
allocator::Allocator,
|
||||||
|
|
@ -5,18 +12,16 @@ use {
|
||||||
cmm_description::{ColorDescription, LinearColorDescription},
|
cmm_description::{ColorDescription, LinearColorDescription},
|
||||||
cmm_render_intent::RenderIntent,
|
cmm_render_intent::RenderIntent,
|
||||||
},
|
},
|
||||||
cpu_worker::CpuWorker,
|
|
||||||
cursor::Cursor,
|
cursor::Cursor,
|
||||||
damage::DamageVisualizer,
|
damage::DamageVisualizer,
|
||||||
eventfd_cache::Eventfd,
|
|
||||||
fixed::Fixed,
|
|
||||||
format::Format,
|
format::Format,
|
||||||
io_uring::{IoUring, IoUringError},
|
|
||||||
rect::{Rect, Region},
|
|
||||||
renderer::{Renderer, renderer_base::RendererBase},
|
renderer::{Renderer, renderer_base::RendererBase},
|
||||||
scale::Scale,
|
|
||||||
state::State,
|
state::State,
|
||||||
theme::Color,
|
|
||||||
tree::{Node, OutputNode, Transform},
|
tree::{Node, OutputNode, Transform},
|
||||||
utils::{
|
utils::{
|
||||||
clonecell::UnsafeCellCloneSafe, errorfmt::ErrorFmt, oserror::OsErrorExt,
|
clonecell::UnsafeCellCloneSafe, errorfmt::ErrorFmt, oserror::OsErrorExt,
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,15 @@
|
||||||
pub use vulkan::create_vulkan_allocator;
|
pub use vulkan::create_vulkan_allocator;
|
||||||
|
use jay_pr_caps::PrCapsThread;
|
||||||
|
use jay_io_uring::IoUring;
|
||||||
|
use jay_eventfd_cache::EventfdCache;
|
||||||
|
use jay_async_engine::AsyncEngine;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::AsyncEngine,
|
|
||||||
eventfd_cache::EventfdCache,
|
|
||||||
gfx_api::{GfxApi, GfxContext, GfxError},
|
gfx_api::{GfxApi, GfxContext, GfxError},
|
||||||
io_uring::IoUring,
|
|
||||||
pr_caps::PrCapsThread,
|
|
||||||
utils::errorfmt::ErrorFmt,
|
utils::errorfmt::ErrorFmt,
|
||||||
video::drm::Drm,
|
video::drm::Drm,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ macro_rules! egl_transparent {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
use jay_theme::Color;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
cmm::cmm_eotf::Eotf,
|
cmm::cmm_eotf::Eotf,
|
||||||
|
|
@ -38,7 +39,7 @@ use {
|
||||||
GL_TRIANGLE_STRIP, GL_TRIANGLES,
|
GL_TRIANGLE_STRIP, GL_TRIANGLES,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
theme::Color,
|
|
||||||
utils::{errorfmt::ErrorFmt, rc_eq::rc_eq, vecstorage::VecStorage},
|
utils::{errorfmt::ErrorFmt, rc_eq::rc_eq, vecstorage::VecStorage},
|
||||||
video::{
|
video::{
|
||||||
dmabuf::DMA_BUF_SYNC_READ,
|
dmabuf::DMA_BUF_SYNC_READ,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
|
use jay_geometry::Rect;
|
||||||
|
use jay_cpu_worker::CpuWorker;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
allocator::Allocator,
|
allocator::Allocator,
|
||||||
cpu_worker::CpuWorker,
|
|
||||||
format::{Format, XRGB8888},
|
format::{Format, XRGB8888},
|
||||||
gfx_api::{
|
gfx_api::{
|
||||||
AsyncShmGfxTexture, BufferResvUser, GfxApi, GfxBlendBuffer, GfxContext, GfxError,
|
AsyncShmGfxTexture, BufferResvUser, GfxApi, GfxBlendBuffer, GfxContext, GfxError,
|
||||||
|
|
@ -17,7 +19,7 @@ use {
|
||||||
},
|
},
|
||||||
renderer::{framebuffer::Framebuffer, image::Image},
|
renderer::{framebuffer::Framebuffer, image::Image},
|
||||||
},
|
},
|
||||||
rect::Rect,
|
|
||||||
video::{
|
video::{
|
||||||
dmabuf::DmaBuf,
|
dmabuf::DmaBuf,
|
||||||
drm::{Drm, syncobj::SyncobjCtx},
|
drm::{Drm, syncobj::SyncobjCtx},
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
use jay_theme::Color;
|
||||||
|
use jay_geometry::Region;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
cmm::{
|
cmm::{
|
||||||
|
|
@ -21,8 +23,8 @@ use {
|
||||||
run_ops,
|
run_ops,
|
||||||
sys::{GL_ONE, GL_ONE_MINUS_SRC_ALPHA},
|
sys::{GL_ONE, GL_ONE_MINUS_SRC_ALPHA},
|
||||||
},
|
},
|
||||||
rect::Region,
|
|
||||||
theme::Color,
|
|
||||||
},
|
},
|
||||||
std::{
|
std::{
|
||||||
cell::Cell,
|
cell::Cell,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
use jay_geometry::Region;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
format::Format,
|
format::Format,
|
||||||
|
|
@ -14,7 +15,7 @@ use {
|
||||||
GL_UNPACK_ROW_LENGTH_EXT, GLint,
|
GL_UNPACK_ROW_LENGTH_EXT, GLint,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
rect::Region,
|
|
||||||
video::dmabuf::DmaBuf,
|
video::dmabuf::DmaBuf,
|
||||||
},
|
},
|
||||||
std::{
|
std::{
|
||||||
|
|
|
||||||
|
|
@ -21,12 +21,18 @@ mod shm_image;
|
||||||
mod staging;
|
mod staging;
|
||||||
mod transfer;
|
mod transfer;
|
||||||
|
|
||||||
|
use jay_pr_caps::PrCapsThread;
|
||||||
|
use jay_io_uring::IoUring;
|
||||||
|
use jay_geometry::Rect;
|
||||||
|
use jay_eventfd_cache::EventfdCache;
|
||||||
|
use jay_cpu_worker::{CpuWorker, jobs::read_write::ReadWriteJobError};
|
||||||
|
use jay_async_engine::AsyncEngine;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
allocator::{Allocator, AllocatorError},
|
allocator::{Allocator, AllocatorError},
|
||||||
async_engine::AsyncEngine,
|
|
||||||
cpu_worker::{CpuWorker, jobs::read_write::ReadWriteJobError},
|
|
||||||
eventfd_cache::EventfdCache,
|
|
||||||
format::Format,
|
format::Format,
|
||||||
gfx_api::{
|
gfx_api::{
|
||||||
AsyncShmGfxTexture, GfxApi, GfxBlendBuffer, GfxBuffer, GfxContext, GfxError, GfxFormat,
|
AsyncShmGfxTexture, GfxApi, GfxBlendBuffer, GfxBuffer, GfxContext, GfxError, GfxFormat,
|
||||||
|
|
@ -37,9 +43,9 @@ use {
|
||||||
device::VulkanDevice, image::VulkanImageMemory, instance::VulkanInstance,
|
device::VulkanDevice, image::VulkanImageMemory, instance::VulkanInstance,
|
||||||
renderer::VulkanRenderer,
|
renderer::VulkanRenderer,
|
||||||
},
|
},
|
||||||
io_uring::IoUring,
|
|
||||||
pr_caps::PrCapsThread,
|
|
||||||
rect::Rect,
|
|
||||||
utils::{errorfmt::ErrorFmt, oserror::OsError},
|
utils::{errorfmt::ErrorFmt, oserror::OsError},
|
||||||
video::{
|
video::{
|
||||||
dmabuf::DmaBuf,
|
dmabuf::DmaBuf,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
|
use jay_cpu_worker::{AsyncCpuWork, CpuJob, CpuWork, CpuWorker};
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
cpu_worker::{AsyncCpuWork, CpuJob, CpuWork, CpuWorker},
|
|
||||||
gfx_apis::vulkan::{VulkanError, device::VulkanDevice, renderer::VulkanRenderer},
|
gfx_apis::vulkan::{VulkanError, device::VulkanDevice, renderer::VulkanRenderer},
|
||||||
utils::{numcell::NumCell, page_size::page_size, ptr_ext::MutPtrExt},
|
utils::{numcell::NumCell, page_size::page_size, ptr_ext::MutPtrExt},
|
||||||
vulkan_core::gpu_alloc_ash::{self, AshMemoryDevice},
|
vulkan_core::gpu_alloc_ash::{self, AshMemoryDevice},
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
|
use jay_eventfd_cache::EventfdCache;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
allocator::BufferObject,
|
allocator::BufferObject,
|
||||||
eventfd_cache::EventfdCache,
|
|
||||||
format::XRGB8888,
|
format::XRGB8888,
|
||||||
gfx_apis::vulkan::{
|
gfx_apis::vulkan::{
|
||||||
VulkanError,
|
VulkanError,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
use jay_theme::Color;
|
||||||
|
use jay_geometry::Region;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
cmm::cmm_description::{ColorDescription, LinearColorDescription},
|
cmm::cmm_description::{ColorDescription, LinearColorDescription},
|
||||||
|
|
@ -13,8 +15,8 @@ use {
|
||||||
format::VulkanModifierLimits, renderer::VulkanRenderer, shm_image::VulkanShmImage,
|
format::VulkanModifierLimits, renderer::VulkanRenderer, shm_image::VulkanShmImage,
|
||||||
transfer::TransferType,
|
transfer::TransferType,
|
||||||
},
|
},
|
||||||
rect::Region,
|
|
||||||
theme::Color,
|
|
||||||
utils::oserror::OsErrorExt2,
|
utils::oserror::OsErrorExt2,
|
||||||
video::dmabuf::{DmaBuf, PlaneVec},
|
video::dmabuf::{DmaBuf, PlaneVec},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,11 @@ mod pipeline_cache;
|
||||||
mod pipelines;
|
mod pipelines;
|
||||||
mod paint_region;
|
mod paint_region;
|
||||||
|
|
||||||
|
use jay_theme::Color;
|
||||||
|
use jay_io_uring::IoUring;
|
||||||
|
use jay_geometry::{Rect, Region};
|
||||||
|
use jay_cpu_worker::PendingJob;
|
||||||
|
use jay_async_engine::{AsyncEngine, SpawnedFuture};
|
||||||
use {
|
use {
|
||||||
color::{ColorTransforms, EotfArgsCache},
|
color::{ColorTransforms, EotfArgsCache},
|
||||||
op::{
|
op::{
|
||||||
|
|
@ -13,12 +18,12 @@ use {
|
||||||
paint_region::{PaintRegion, Point, constrain_to_fb},
|
paint_region::{PaintRegion, Point, constrain_to_fb},
|
||||||
pipeline_cache::{FillPipelines, OutPipelineKey, TexPipelines},
|
pipeline_cache::{FillPipelines, OutPipelineKey, TexPipelines},
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::{AsyncEngine, SpawnedFuture},
|
|
||||||
cmm::{
|
cmm::{
|
||||||
cmm_description::{ColorDescription, LinearColorDescription},
|
cmm_description::{ColorDescription, LinearColorDescription},
|
||||||
cmm_render_intent::RenderIntent,
|
cmm_render_intent::RenderIntent,
|
||||||
},
|
},
|
||||||
cpu_worker::PendingJob,
|
|
||||||
gfx_api::{
|
gfx_api::{
|
||||||
AcquireSync, BufferResv, BufferResvUser, FdSync, GfxApiOpt, GfxBlendBuffer, GfxFormat,
|
AcquireSync, BufferResv, BufferResvUser, FdSync, GfxApiOpt, GfxBlendBuffer, GfxFormat,
|
||||||
GfxTexture, GfxWriteModifier, ReleaseSync,
|
GfxTexture, GfxWriteModifier, ReleaseSync,
|
||||||
|
|
@ -48,9 +53,9 @@ use {
|
||||||
VulkanShader,
|
VulkanShader,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
io_uring::IoUring,
|
|
||||||
rect::{Rect, Region},
|
|
||||||
theme::Color,
|
|
||||||
utils::{
|
utils::{
|
||||||
copyhashmap::CopyHashMap, errorfmt::ErrorFmt, numcell::NumCell, oserror::OsErrorExt2,
|
copyhashmap::CopyHashMap, errorfmt::ErrorFmt, numcell::NumCell, oserror::OsErrorExt2,
|
||||||
stack::Stack,
|
stack::Stack,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
use jay_theme::Color;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
cmm::{
|
cmm::{
|
||||||
|
|
@ -11,7 +12,7 @@ use {
|
||||||
buffer_cache::GenericBufferWriter,
|
buffer_cache::GenericBufferWriter,
|
||||||
shaders::{ColorManagementData, EotfArgs, InvEotfArgs},
|
shaders::{ColorManagementData, EotfArgs, InvEotfArgs},
|
||||||
},
|
},
|
||||||
theme::Color,
|
|
||||||
utils::ordered_float::F32,
|
utils::ordered_float::F32,
|
||||||
},
|
},
|
||||||
ahash::AHashMap,
|
ahash::AHashMap,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
use {
|
use {
|
||||||
crate::{gfx_apis::vulkan::image::VulkanImage, rect::Rect},
|
crate::gfx_apis::vulkan::image::VulkanImage,
|
||||||
ash::vk::{Extent2D, Offset2D, Rect2D},
|
ash::vk::{Extent2D, Offset2D, Rect2D},
|
||||||
jay_algorithms::rect::Tag,
|
jay_algorithms::rect::Tag,
|
||||||
|
jay_geometry::Rect,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub(super) type Point = [[f32; 2]; 4];
|
pub(super) type Point = [[f32; 2]; 4];
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
|
use jay_geometry::Rect;
|
||||||
|
use jay_cpu_worker::CpuWorker;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
cpu_worker::CpuWorker,
|
|
||||||
format::Format,
|
format::Format,
|
||||||
gfx_api::FdSync,
|
gfx_api::FdSync,
|
||||||
gfx_apis::vulkan::{
|
gfx_apis::vulkan::{
|
||||||
|
|
@ -12,7 +14,7 @@ use {
|
||||||
staging::VulkanStagingBuffer,
|
staging::VulkanStagingBuffer,
|
||||||
transfer::{TransferType, VulkanShmImageAsyncData},
|
transfer::{TransferType, VulkanShmImageAsyncData},
|
||||||
},
|
},
|
||||||
rect::Rect,
|
|
||||||
utils::errorfmt::ErrorFmt,
|
utils::errorfmt::ErrorFmt,
|
||||||
vulkan_core::sync::VulkanDeviceSyncExt,
|
vulkan_core::sync::VulkanDeviceSyncExt,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
|
use jay_cpu_worker::CpuWorker;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
cpu_worker::CpuWorker,
|
|
||||||
gfx_api::GfxStagingBuffer,
|
gfx_api::GfxStagingBuffer,
|
||||||
gfx_apis::vulkan::{
|
gfx_apis::vulkan::{
|
||||||
VulkanError,
|
VulkanError,
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
|
use jay_geometry::{Rect, Region};
|
||||||
|
use jay_cpu_worker::{
|
||||||
|
CpuJob, CpuWork, CpuWorker,
|
||||||
|
jobs::{
|
||||||
|
img_copy::ImgCopyWork,
|
||||||
|
read_write::{ReadWriteJobError, ReadWriteWork},
|
||||||
|
},
|
||||||
|
};
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
cpu_worker::{
|
|
||||||
CpuJob, CpuWork, CpuWorker,
|
|
||||||
jobs::{
|
|
||||||
img_copy::ImgCopyWork,
|
|
||||||
read_write::{ReadWriteJobError, ReadWriteWork},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
gfx_api::{
|
gfx_api::{
|
||||||
AsyncShmGfxTextureCallback, FdSync, PendingShmTransfer, ShmMemory, ShmMemoryBacking,
|
AsyncShmGfxTextureCallback, FdSync, PendingShmTransfer, ShmMemory, ShmMemoryBacking,
|
||||||
},
|
},
|
||||||
|
|
@ -19,7 +20,7 @@ use {
|
||||||
shm_image::VulkanShmImage,
|
shm_image::VulkanShmImage,
|
||||||
staging::{VulkanStagingBuffer, VulkanStagingShell},
|
staging::{VulkanStagingBuffer, VulkanStagingShell},
|
||||||
},
|
},
|
||||||
rect::{Rect, Region},
|
|
||||||
utils::{clonecell::CloneCell, errorfmt::ErrorFmt},
|
utils::{clonecell::CloneCell, errorfmt::ErrorFmt},
|
||||||
vulkan_core::sync::VulkanDeviceSyncExt,
|
vulkan_core::sync::VulkanDeviceSyncExt,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
11
src/icons.rs
11
src/icons.rs
|
|
@ -1,14 +1,15 @@
|
||||||
#![allow(clippy::excessive_precision)]
|
#![allow(clippy::excessive_precision)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
|
||||||
|
use jay_theme::Theme;
|
||||||
|
use jay_units::scale::Scale;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
cmm::cmm_eotf::Eotf,
|
cmm::cmm_eotf::Eotf,
|
||||||
format::ARGB8888,
|
format::ARGB8888,
|
||||||
gfx_api::{GfxContext, GfxError, GfxTexture},
|
gfx_api::{GfxContext, GfxError, GfxTexture},
|
||||||
scale::Scale,
|
|
||||||
state::State,
|
state::State,
|
||||||
theme::Theme,
|
|
||||||
utils::{copyhashmap::CopyHashMap, windows::WindowsExt},
|
utils::{copyhashmap::CopyHashMap, windows::WindowsExt},
|
||||||
},
|
},
|
||||||
ahash::AHashSet,
|
ahash::AHashSet,
|
||||||
|
|
@ -100,7 +101,7 @@ pub fn create_icons(
|
||||||
}
|
}
|
||||||
let size = size as u32;
|
let size = size as u32;
|
||||||
|
|
||||||
let create_pins = |color: crate::theme::Color| {
|
let create_pins = |color: jay_theme::Color| {
|
||||||
let create_pin = |color: Color| {
|
let create_pin = |color: Color| {
|
||||||
let mut paint = Paint::default();
|
let mut paint = Paint::default();
|
||||||
paint.set_color(color);
|
paint.set_color(color);
|
||||||
|
|
@ -222,7 +223,7 @@ impl PathBuilderExt for PathBuilder {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn calculate_accents(srgb: crate::theme::Color) -> [Color; 2] {
|
fn calculate_accents(srgb: jay_theme::Color) -> [Color; 2] {
|
||||||
let [l, a, b, alpha] = srgb_to_lab(srgb);
|
let [l, a, b, alpha] = srgb_to_lab(srgb);
|
||||||
let l2 = if l < 0.65 { 0.9 } else { l - 0.4 };
|
let l2 = if l < 0.65 { 0.9 } else { l - 0.4 };
|
||||||
let l1 = (l2 + l) / 2.0;
|
let l1 = (l2 + l) / 2.0;
|
||||||
|
|
@ -232,7 +233,7 @@ fn calculate_accents(srgb: crate::theme::Color) -> [Color; 2] {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
fn srgb_to_lab(srgb: crate::theme::Color) -> [f32; 4] {
|
fn srgb_to_lab(srgb: jay_theme::Color) -> [f32; 4] {
|
||||||
let [mut r, mut g, mut b, alpha] = srgb.to_array(Eotf::Gamma22);
|
let [mut r, mut g, mut b, alpha] = srgb.to_array(Eotf::Gamma22);
|
||||||
if alpha < 1.0 {
|
if alpha < 1.0 {
|
||||||
r /= alpha;
|
r /= alpha;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
|
use jay_units::fixed::Fixed;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
client::{Client, ClientError, ClientId},
|
client::{Client, ClientError, ClientId},
|
||||||
fixed::Fixed,
|
|
||||||
ifs::{data_transfer::x_data_device::XTransferDevice, wl_seat::WlSeatGlobal},
|
ifs::{data_transfer::x_data_device::XTransferDevice, wl_seat::WlSeatGlobal},
|
||||||
utils::{
|
utils::{
|
||||||
bitflags::BitflagsExt, cell_ext::CellExt, clonecell::CloneCell, numcell::NumCell,
|
bitflags::BitflagsExt, cell_ext::CellExt, clonecell::CloneCell, numcell::NumCell,
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,12 @@
|
||||||
|
use jay_units::fixed::Fixed;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
client::{Client, ClientError, ClientId},
|
client::{Client, ClientError, ClientId},
|
||||||
fixed::Fixed,
|
|
||||||
ifs::{
|
ifs::{
|
||||||
data_transfer::{
|
data_transfer::{
|
||||||
DeviceData, TransferVtable, IterableTransferVtable, OfferData, Role, break_device_loops,
|
DeviceData, IterableTransferVtable, OfferData, Role, TransferVtable,
|
||||||
destroy_data_device, wl_data_offer::WlDataOffer, wl_data_source::WlDataSource,
|
break_device_loops, destroy_data_device, wl_data_offer::WlDataOffer,
|
||||||
|
wl_data_source::WlDataSource,
|
||||||
},
|
},
|
||||||
wl_seat::{WlSeatError, WlSeatGlobal},
|
wl_seat::{WlSeatError, WlSeatGlobal},
|
||||||
wl_surface::WlSurfaceError,
|
wl_surface::WlSurfaceError,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
|
use jay_units::fixed::Fixed;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
client::{Client, ClientError, ClientId},
|
client::{Client, ClientError, ClientId},
|
||||||
fixed::Fixed,
|
|
||||||
ifs::{
|
ifs::{
|
||||||
data_transfer::{
|
data_transfer::{
|
||||||
DataOffer, DataOfferId, DynDataOffer, OFFER_STATE_ACCEPTED, OFFER_STATE_DROPPED,
|
DataOffer, DataOfferId, DynDataOffer, OFFER_STATE_ACCEPTED, OFFER_STATE_DROPPED,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
|
use jay_async_engine::SpawnedFuture;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
async_engine::SpawnedFuture,
|
|
||||||
client::{Client, ClientError},
|
client::{Client, ClientError},
|
||||||
ifs::wl_seat::WlSeatGlobal,
|
ifs::wl_seat::WlSeatGlobal,
|
||||||
leaks::Tracker,
|
leaks::Tracker,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
use jay_geometry::Region;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
client::{Client, ClientError},
|
client::{Client, ClientError},
|
||||||
|
|
@ -13,7 +14,7 @@ use {
|
||||||
},
|
},
|
||||||
leaks::Tracker,
|
leaks::Tracker,
|
||||||
object::Object,
|
object::Object,
|
||||||
rect::Region,
|
|
||||||
tree::{self, Node, OutputNode},
|
tree::{self, Node, OutputNode},
|
||||||
utils::{cell_ext::CellExt, errorfmt::ErrorFmt},
|
utils::{cell_ext::CellExt, errorfmt::ErrorFmt},
|
||||||
wire::{ExtImageCopyCaptureFrameV1Id, ext_image_copy_capture_frame_v1::*},
|
wire::{ExtImageCopyCaptureFrameV1Id, ext_image_copy_capture_frame_v1::*},
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
use jay_time::Time;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
client::{Client, ClientError},
|
client::{Client, ClientError},
|
||||||
|
|
@ -16,7 +17,7 @@ use {
|
||||||
},
|
},
|
||||||
leaks::Tracker,
|
leaks::Tracker,
|
||||||
object::{Object, Version},
|
object::{Object, Version},
|
||||||
time::Time,
|
|
||||||
tree::{LatchListener, OutputNode, PresentationListener},
|
tree::{LatchListener, OutputNode, PresentationListener},
|
||||||
utils::{cell_ext::CellExt, clonecell::CloneCell, event_listener::EventListener},
|
utils::{cell_ext::CellExt, clonecell::CloneCell, event_listener::EventListener},
|
||||||
video::Modifier,
|
video::Modifier,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
use jay_units::scale::Scale;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
backend::{
|
backend::{
|
||||||
|
|
@ -14,7 +15,6 @@ use {
|
||||||
},
|
},
|
||||||
wl_output::{BlendSpace, PersistentOutputState},
|
wl_output::{BlendSpace, PersistentOutputState},
|
||||||
},
|
},
|
||||||
scale::Scale,
|
|
||||||
state::{OutputData, State},
|
state::{OutputData, State},
|
||||||
tree::{OutputNode, TearingMode, Transform, VrrMode},
|
tree::{OutputNode, TearingMode, Transform, VrrMode},
|
||||||
utils::{copyhashmap::CopyHashMap, hash_map_ext::HashMapExt, rc_eq::RcEq},
|
utils::{copyhashmap::CopyHashMap, hash_map_ext::HashMapExt, rc_eq::RcEq},
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
|
use jay_units::scale::Scale;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
compositor::{MAX_SCALE, MIN_SCALE},
|
compositor::{MAX_SCALE, MIN_SCALE},
|
||||||
ifs::head_management::{HeadOp, HeadState},
|
ifs::head_management::{HeadOp, HeadState},
|
||||||
scale::Scale,
|
|
||||||
wire::{
|
wire::{
|
||||||
jay_head_ext_compositor_space_scaler_v1::{
|
jay_head_ext_compositor_space_scaler_v1::{
|
||||||
JayHeadExtCompositorSpaceScalerV1RequestHandler, Range, SetScale,
|
JayHeadExtCompositorSpaceScalerV1RequestHandler, Range, SetScale,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
use jay_logger::LogLevel;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
backend::transaction::BackendConnectorTransactionError,
|
backend::transaction::BackendConnectorTransactionError,
|
||||||
|
|
@ -26,7 +27,7 @@ use {
|
||||||
wl_surface::jay_sync_file_surface::JaySyncFileSurface,
|
wl_surface::jay_sync_file_surface::JaySyncFileSurface,
|
||||||
},
|
},
|
||||||
leaks::Tracker,
|
leaks::Tracker,
|
||||||
logger::LogLevel,
|
|
||||||
object::{Object, Version},
|
object::{Object, Version},
|
||||||
screenshoter::take_screenshot,
|
screenshoter::take_screenshot,
|
||||||
tree::ToplevelIdentifier,
|
tree::ToplevelIdentifier,
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue