Skip to content

Commit 233beec

Browse files
chore: migrate from iced_layershell to iced_exwlshell
Signed-off-by: Maika Namuo <httpworldview@gmail.com>
1 parent cb0caa3 commit 233beec

6 files changed

Lines changed: 84 additions & 78 deletions

File tree

‎Cargo.lock‎

Lines changed: 71 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ wayland-client = "0.31.15"
4040
default-features = false
4141
features = [ "env-filter", "fmt" ]
4242

43-
[dependencies.iced_layershell]
44-
git = "https://github.com/waycrate/exwlshelleventloop"
45-
rev = "26a318d714a6324ba014110b8fb5086fdf667169"
43+
[dependencies.iced_exwlshell]
44+
version = "0.20.0"
4645
default-features = false
46+
features = [ "macros" ]
4747

4848
[dev-dependencies]
4949
ebur128 = "0.1.10"

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ out.
333333

334334
### Libraries
335335

336-
- **iced_layershell** and related crates
336+
- **iced_exwlshell** and related crates
337337
(<https://github.com/waycrate/exwlshelleventloop>)
338338
- Special thanks to Decodetalkers for reviewing and merging my
339339
patches, and for maintaining such a useful library.

‎src/ui/app.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use iced::{
2424
Element, Length, Settings as IcedSettings, Size, Subscription, Task, daemon as iced_daemon,
2525
window,
2626
};
27-
use iced_layershell::settings::{LayerShellSettings, Settings as LayerSettings, StartMode};
27+
use iced_exwlshell::settings::{LayerShellSettings, Settings as LayerSettings, StartMode};
2828
use message::{Message, app_event, shell_event, update, view};
2929
use std::cell::RefCell;
3030
use std::collections::HashMap;
@@ -65,8 +65,8 @@ pub(crate) struct UiConfig {
6565

6666
pub(crate) fn run(config: UiConfig) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
6767
if layershell_available() {
68-
let (shell_broadcast, shell_events) = iced_layershell::shell::channel();
69-
iced_layershell::daemon(
68+
let (shell_broadcast, shell_events) = iced_exwlshell::shell::channel();
69+
iced_exwlshell::daemon(
7070
move || UiApp::new(config.clone(), true),
7171
|| APP_ID.to_string(),
7272
update,

‎src/ui/app/message.rs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ use iced::event::{self, Event};
1010
use iced::keyboard::{self, Key};
1111
use iced::widget::text;
1212
use iced::{Element, Size, Task, exit, mouse, window};
13-
use iced_layershell::actions::IcedXdgWindowSettings;
14-
use iced_layershell::reexport::NewLayerShellSettings;
15-
use iced_layershell::shell::ShellEvent;
16-
use iced_layershell::to_layer_message;
13+
use iced_exwlshell::actions::IcedXdgWindowSettings;
14+
use iced_exwlshell::reexport::NewLayerShellSettings;
15+
use iced_exwlshell::shell::ShellEvent;
16+
use iced_exwlshell::to_layer_message;
1717
use std::time::Instant;
1818

1919
#[to_layer_message(multi)]

‎src/ui/app/windowing.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::ui::widgets::{fill, scroll_glow::ScrollGlow};
1212
use crate::visuals::registry::{VisualContent, VisualKind, VisualSlotSnapshot};
1313
use iced::widget::mouse_area;
1414
use iced::{Element, Size, Task, exit, window};
15-
use iced_layershell::reexport::{
15+
use iced_exwlshell::reexport::{
1616
Anchor, KeyboardInteractivity, Layer, LayerSize, NewLayerShellSettings, OutputOption, PixelSize,
1717
};
1818
use wayland_client::globals::{GlobalListContents, registry_queue_init};
@@ -80,7 +80,7 @@ fn open_base_window(
8080
) -> (window::Id, Task<Message>) {
8181
if layershell {
8282
let (width, height) = persisted_window_size(size);
83-
let settings = iced_layershell::actions::IcedXdgWindowSettings {
83+
let settings = iced_exwlshell::actions::IcedXdgWindowSettings {
8484
size: Some(PixelSize::px(width, height)),
8585
client_side_decorations: !decorations,
8686
};

0 commit comments

Comments
 (0)