Skip to content

Commit 0120ebf

Browse files
committed
WIP wl_fixes
1 parent 2380d2b commit 0120ebf

File tree

5 files changed

+47
-44
lines changed

5 files changed

+47
-44
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,16 @@ inherits = "release"
119119
lto = "fat"
120120

121121
[patch."https://github.com/Smithay/smithay.git"]
122-
smithay = {git = "https://github.com/smithay//smithay", rev = "f7638e8"}
122+
# smithay = {git = "https://github.com/smithay//smithay", rev = "f7638e8"}
123+
smithay = {git = "https://github.com/ids1024/smithay", branch = "wl_fixes"}
124+
125+
[patch.crates-io]
126+
wayland-egl = { git = "https://github.com/ids1024/wayland-rs", branch = "wl-fixes" }
127+
wayland-protocols = { git = "https://github.com/ids1024/wayland-rs", branch = "wl-fixes" }
128+
wayland-protocols-wlr = { git = "https://github.com/ids1024/wayland-rs", branch = "wl-fixes" }
129+
wayland-protocols-misc = { git = "https://github.com/ids1024/wayland-rs", branch = "wl-fixes" }
130+
wayland-server = { git = "https://github.com/ids1024/wayland-rs", branch = "wl-fixes" }
131+
wayland-client = { git = "https://github.com/ids1024/wayland-rs", branch = "wl-fixes" }
132+
wayland-sys = { git = "https://github.com/ids1024/wayland-rs", branch = "wl-fixes" }
133+
wayland-backend = { git = "https://github.com/ids1024/wayland-rs", branch = "wl-fixes" }
134+
wayland-scanner = { git = "https://github.com/ids1024/wayland-rs", branch = "wl-fixes" }

src/state.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ use smithay::{
6565
wayland::{
6666
compositor::{CompositorClientState, CompositorState},
6767
dmabuf::{DmabufFeedback, DmabufGlobal, DmabufState},
68+
fixes::FixesState,
6869
fractional_scale::{with_fractional_scale, FractionalScaleManagerState},
6970
idle_inhibit::IdleInhibitManagerState,
7071
idle_notify::IdleNotifierState,
@@ -433,6 +434,7 @@ impl State {
433434
InputMethodManagerState::new::<Self, _>(&dh, client_is_privileged);
434435
TextInputManagerState::new::<Self>(&dh);
435436
VirtualKeyboardManagerState::new::<State, _>(&dh, client_is_privileged);
437+
FixesState::new::<Self>(&dh);
436438

437439
let idle_notifier_state = IdleNotifierState::<Self>::new(&dh, handle.clone());
438440
let idle_inhibit_manager_state = IdleInhibitManagerState::new::<State>(&dh);

src/wayland/handlers/fixes.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// SPDX-License-Identifier: GPL-3.0-only
2+
3+
use crate::state::State;
4+
use smithay::delegate_fixes;
5+
6+
delegate_fixes!(State);

src/wayland/handlers/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub mod decoration;
88
pub mod dmabuf;
99
pub mod drm;
1010
pub mod drm_lease;
11+
pub mod fixes;
1112
pub mod fractional_scale;
1213
pub mod idle_inhibit;
1314
pub mod idle_notify;

0 commit comments

Comments
 (0)