feat: subsurface reposition
This commit is contained in:
parent
4eb7f9b2fe
commit
8e7b7e586f
3 changed files with 32 additions and 3 deletions
|
|
@ -26,3 +26,15 @@ pub fn destroy_subsurface<Message>(id: SurfaceId) -> Task<Message> {
|
|||
)),
|
||||
))
|
||||
}
|
||||
|
||||
pub fn reposition_subsurface<Message>(
|
||||
id: SurfaceId,
|
||||
x: i32,
|
||||
y: i32,
|
||||
) -> Task<Message> {
|
||||
task::effect(Action::PlatformSpecific(
|
||||
platform_specific::Action::Wayland(wayland::Action::Subsurface(
|
||||
wayland::subsurface::Action::Reposition { id, x, y },
|
||||
)),
|
||||
))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue