mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-26 17:03:09 +00:00
fix(compositor): replace invalid as u32 casts on wayland enum types with u32::from()
This commit is contained in:
parent
64f6d17b12
commit
6c3994888d
1 changed files with 2 additions and 2 deletions
|
|
@ -500,7 +500,7 @@ impl Dispatch<ZweftShellManagerV1, ()> for WeftCompositorState {
|
|||
oy,
|
||||
ow,
|
||||
oh,
|
||||
crate::protocols::server::zweft_shell_window_v1::State::Maximized as u32,
|
||||
u32::from(crate::protocols::server::zweft_shell_window_v1::State::Maximized),
|
||||
);
|
||||
state.weft_shell_state.add_panel(window);
|
||||
} else {
|
||||
|
|
@ -523,7 +523,7 @@ impl Dispatch<ZweftShellWindowV1, WeftShellWindowData> for WeftCompositorState {
|
|||
) {
|
||||
if data.closed.load(std::sync::atomic::Ordering::Relaxed) {
|
||||
resource.post_error(
|
||||
crate::protocols::server::zweft_shell_window_v1::Error::DefunctWindow as u32,
|
||||
u32::from(crate::protocols::server::zweft_shell_window_v1::Error::DefunctWindow),
|
||||
"request on closed window",
|
||||
);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue