mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 11:18:43 +02:00
xwm: Use window->x/y for override redirect surfaces
window->x/y is the coordinate of the top-level surface (whether that's the frame window or an override-redirect window) and the wayland surface should be placed there, without the t->margin offset.
This commit is contained in:
parent
15df112a0e
commit
c2bc922348
1 changed files with 2 additions and 3 deletions
|
|
@ -1898,7 +1898,6 @@ xserver_map_shell_surface(struct weston_wm *wm,
|
|||
{
|
||||
struct weston_shell_interface *shell_interface =
|
||||
&wm->server->compositor->shell_interface;
|
||||
struct theme *t = window->wm->theme;
|
||||
|
||||
if (!shell_interface->create_shell_surface)
|
||||
return;
|
||||
|
|
@ -1920,8 +1919,8 @@ xserver_map_shell_surface(struct weston_wm *wm,
|
|||
return;
|
||||
} else {
|
||||
shell_interface->set_xwayland(window->shsurf,
|
||||
window->x + t->margin,
|
||||
window->y + t->margin,
|
||||
window->x,
|
||||
window->y,
|
||||
WL_SHELL_SURFACE_TRANSIENT_INACTIVE);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue