Skip to content

Commit

Permalink
fix: panic because the init size is 0,0
Browse files Browse the repository at this point in the history
set it to 1,1 at the beginning

and update the deps
  • Loading branch information
Decodetalkers committed Nov 5, 2024
1 parent 12ae257 commit c8fcb72
Show file tree
Hide file tree
Showing 8 changed files with 174 additions and 200 deletions.
319 changes: 145 additions & 174 deletions Cargo.lock

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,40 +18,40 @@ authors = [
"Aakash Sen Sharma <[email protected]>",
]
edition = "2021"
version = "0.9.4"
version = "0.9.5"
license = "MIT"
repository = "https://github.com/waycrate/exwlshelleventloop"
description = "Wayland extra shell lib"
keywords = ["wayland", "wlroots"]
readme = "README.md"

[workspace.dependencies]
layershellev = { version = "0.9.4", path = "./layershellev" }
sessionlockev = { version = "0.9.4", path = "./sessionlockev" }
layershellev = { version = "0.9.5", path = "./layershellev" }
sessionlockev = { version = "0.9.5", path = "./sessionlockev" }

iced_layershell = { version = "0.9.4", path = "./iced_layershell" }
iced_layershell_macros = { version = "0.9.4", path = "./iced_layershell_macros" }
iced_sessionlock = { version = "0.9.4", path = "./iced_sessionlock" }
iced_sessionlock_macros = { version = "0.9.4", path = "./iced_sessionlock_macros" }
waycrate_xkbkeycode = { version = "0.9.4", path = "./waycrate_xkbkeycode" }
iced_layershell = { version = "0.9.5", path = "./iced_layershell" }
iced_layershell_macros = { version = "0.9.5", path = "./iced_layershell_macros" }
iced_sessionlock = { version = "0.9.5", path = "./iced_sessionlock" }
iced_sessionlock_macros = { version = "0.9.5", path = "./iced_sessionlock_macros" }
waycrate_xkbkeycode = { version = "0.9.5", path = "./waycrate_xkbkeycode" }

tempfile = "3.13.0"
thiserror = "1.0.64"
wayland-client = { version = "0.31.6" }
thiserror = "1.0.68"
wayland-client = { version = "0.31.7" }

wayland-protocols = { version = "0.32.4", default-features = false, features = [
wayland-protocols = { version = "0.32.5", default-features = false, features = [
"unstable",
"staging",
"client",
] }

wayland-cursor = "0.31.6"
wayland-cursor = "0.31.7"

wayland-protocols-wlr = { version = "0.3.4", default-features = false, features = [
wayland-protocols-wlr = { version = "0.3.5", default-features = false, features = [
"client",
] }

wayland-protocols-misc = { version = "0.3.4", features = ["client"] }
wayland-protocols-misc = { version = "0.3.5", features = ["client"] }
wayland-backend = { version = "0.3.7", features = ["client_system"] }

#sctk = { package = "smithay-client-toolkit", version = "0.19.2", features = [
Expand Down Expand Up @@ -79,14 +79,14 @@ bitflags = "2.6.0"
log = "0.4.22"

xkbcommon-dl = "0.4.2"
smol_str = "0.2.2" #NOTE: follwo iced
smol_str = "0.2.2" #NOTE: follow iced
memmap2 = "0.9.5"

tracing = "0.1.40"
futures = "0.3.31"

darling = { version = "0.20.10", features = ["suggestions"] }
manyhow = { version = "0.11.4", features = ["darling"] }
proc-macro2 = "1.0.88"
proc-macro2 = "1.0.89"
quote = "1.0.37"
syn = { version = "2.0.82", features = ["full"] }
syn = { version = "2.0.87", features = ["full"] }
4 changes: 2 additions & 2 deletions iced_examples/application_launcher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ iced = { workspace = true, features = [
] }
iced_runtime.workspace = true
iced_layershell.workspace = true
gio = "0.20.4"
regex = "1.11.0"
gio = "0.20.5"
regex = "1.11.1"
xdg = "2.5.2"
tracing = "0.1.40"
2 changes: 1 addition & 1 deletion iced_examples/application_launcher/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl Application for Launcher {
}

fn namespace(&self) -> String {
String::from("iced_launcer")
String::from("iced_launcer2")
}

fn subscription(&self) -> iced::Subscription<Self::Message> {
Expand Down
4 changes: 2 additions & 2 deletions iced_examples/bottom_panel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ readme.workspace = true
iced = { workspace = true, features = ["image", "svg"] }
iced_runtime.workspace = true
iced_layershell.workspace = true
gio = "0.20.4"
regex = "1.11.0"
gio = "0.20.5"
regex = "1.11.1"
xdg = "2.5.2"
tracing = "0.1.40"
2 changes: 1 addition & 1 deletion iced_examples/zbus_invoked_widget/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ iced.workspace = true
iced_runtime.workspace = true
iced_layershell.workspace = true

zbus = { version = "5.0.1", default-features = false, features = ["tokio"] }
zbus = { version = "5.1.0", default-features = false, features = ["tokio"] }
futures = "0.3.31"
7 changes: 5 additions & 2 deletions iced_layershell/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,13 @@ async fn run_instance<A, E, C>(
.expect("Cannot create compositor");
let mut renderer = compositor.create_renderer();

let physical_size = state.physical_size();
let cache = user_interface::Cache::default();

// HACK: the surface size should not be set as 0, 0
// but it will changed later
// so here set it to 1, 1
let mut surface =
compositor.create_surface(window.clone(), physical_size.width, physical_size.height);
compositor.create_surface(window.clone(), 1, 1);

let mut should_exit = false;

Expand Down
2 changes: 1 addition & 1 deletion starcolorkeyboard/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tempfile.workspace = true

xkbcommon = "0.8.0"

cairo-rs = "0.20.1"
cairo-rs = "0.20.5"
pango = "0.20.4"
pangocairo = "0.20.4"

Expand Down

0 comments on commit c8fcb72

Please sign in to comment.