Skip to content

Commit 2aeb2ed

Browse files
wayland client side decorations
1 parent 1965891 commit 2aeb2ed

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ web-sys = { version = "=0.3.77", features = [
132132
"HtmlImageElement",
133133
"ImageBitmapRenderingContext",
134134
] }
135-
winit = { git = "https://github.com/rust-windowing/winit.git", rev = "66283a79bddd034c45fb0e72c84fa5cd4e5f82fb", default-features = false }
135+
winit = { git = "https://github.com/timon-schelling/winit.git", rev = "37221c7192ef1deec022a2278e54429331c01bad", default-features = false }
136136
url = "2.5"
137137
tokio = { version = "1.29", features = ["fs", "macros", "io-std", "rt"] }
138138
vello = { git = "https://github.com/linebender/vello.git", rev = "87cc5bee6d3a34d15017dbbb58634ddc7f33ff9b" } # TODO switch back to stable when a release is made

desktop/src/native_window.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ impl NativeWindowHandle {
2626
.with_title(APP_NAME)
2727
.with_min_surface_size(winit::dpi::LogicalSize::new(400, 300))
2828
.with_surface_size(winit::dpi::LogicalSize::new(1200, 800))
29-
.with_resizable(true);
29+
.with_resizable(true)
30+
.with_theme(Some(winit::window::Theme::Dark));
3031

3132
#[cfg(target_os = "linux")]
3233
{
@@ -35,7 +36,7 @@ impl NativeWindowHandle {
3536
use winit::platform::wayland::WindowAttributesWayland;
3637
use winit::platform::x11::WindowAttributesX11;
3738
window = if event_loop.is_wayland() {
38-
let wayland_window = WindowAttributesWayland::default().with_name(APP_ID, "");
39+
let wayland_window = WindowAttributesWayland::default().with_name(APP_ID, "").with_prefer_csd(true);
3940
window.with_platform_attributes(Box::new(wayland_window))
4041
} else {
4142
let x11_window = WindowAttributesX11::default().with_name(APP_ID, APP_NAME);

0 commit comments

Comments
 (0)