slide a surface from a location to another

Ask the compositor to move the surface from a location to another with a slide animation.

The from argument provides a clue about where the slide animation begins, offset is the distance from screen edge to begin the animation.

set_location(location: uint)
Argument
Type
Description
locationuint
set_offset(offset: int)
Argument
Type
Description
offsetint
release()
release the slide object
location { left, top, right, bottom } 
Argument
Value
Description
left0
top1
right2
bottom3

Compositor Support

Mutter
Mutter
46
KWin
KWin
6.2
Sway
Sway
1.9
COSMIC
COSMIC
1.0.0
Hyprland
Hyprland
0.42.0
niri
0.1.8
Weston
Weston
13
Mir
Mir
2.18
GameScope
GameScope
3.15.14
Jay
1.7.0
org_kde_kwin_slide_manager
x
1
x
x
x
x
x
x
x
x

SPDX-FileCopyrightText: 2015 Martin Gräßlin SPDX-FileCopyrightText: 2015 Marco Martin

SPDX-License-Identifier: LGPL-2.1-or-later