tree: add Node::node_layer
This commit is contained in:
parent
a5e8b39e4f
commit
dbc954dded
19 changed files with 294 additions and 46 deletions
|
|
@ -9,6 +9,7 @@ use {
|
|||
object::{Object, Version},
|
||||
rect::Rect,
|
||||
state::State,
|
||||
tree::NodeLayerLink,
|
||||
wire::{WlSurfaceId, ZwpInputPopupSurfaceV2Id, zwp_input_popup_surface_v2::*},
|
||||
},
|
||||
std::{cell::Cell, rc::Rc},
|
||||
|
|
@ -27,6 +28,10 @@ pub struct ZwpInputPopupSurfaceV2 {
|
|||
}
|
||||
|
||||
impl SurfaceExt for ZwpInputPopupSurfaceV2 {
|
||||
fn node_layer(&self) -> NodeLayerLink {
|
||||
NodeLayerLink::InputMethod
|
||||
}
|
||||
|
||||
fn after_apply_commit(self: Rc<Self>) {
|
||||
self.update_visible();
|
||||
if self.surface.visible.get() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue