refactor: add namespace
This commit is contained in:
parent
301892aaa5
commit
39d88f2ffa
7 changed files with 33 additions and 12 deletions
|
|
@ -82,13 +82,14 @@ impl Dispatch<ZcosmicOverlapNotificationV1, OverlapNotificationV1, SctkState>
|
|||
}
|
||||
zcosmic_overlap_notification_v1::Event::LayerEnter {
|
||||
identifier,
|
||||
namespace,
|
||||
exclusive,
|
||||
layer,
|
||||
x,
|
||||
y,
|
||||
width,
|
||||
height,
|
||||
} => SctkEvent::OverlapLayerAdd { surface, identifier, exclusive, layer: match layer {
|
||||
} => SctkEvent::OverlapLayerAdd { surface, namespace, identifier, exclusive, layer: match layer {
|
||||
wayland_client::WEnum::Value(v) => match v {
|
||||
cctk::sctk::reexports::protocols_wlr::layer_shell::v1::client::zwlr_layer_shell_v1::Layer::Background => Some(Layer::Background),
|
||||
cctk::sctk::reexports::protocols_wlr::layer_shell::v1::client::zwlr_layer_shell_v1::Layer::Bottom => Some(Layer::Bottom),
|
||||
|
|
|
|||
|
|
@ -140,6 +140,7 @@ pub enum SctkEvent {
|
|||
},
|
||||
OverlapLayerAdd {
|
||||
surface: WlSurface,
|
||||
namespace: String,
|
||||
identifier: String,
|
||||
exclusive: u32,
|
||||
layer: Option<Layer>,
|
||||
|
|
@ -1263,6 +1264,7 @@ impl SctkEvent {
|
|||
}
|
||||
SctkEvent::OverlapLayerAdd {
|
||||
surface,
|
||||
namespace,
|
||||
identifier,
|
||||
exclusive,
|
||||
layer,
|
||||
|
|
@ -1276,6 +1278,7 @@ impl SctkEvent {
|
|||
wayland::Event::OverlapNotify(
|
||||
OverlapNotifyEvent::OverlapLayerAdd {
|
||||
identifier,
|
||||
namespace,
|
||||
exclusive,
|
||||
layer,
|
||||
logical_rect,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue