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
e89a8b6ba1
commit
146f5ba466
@ -1900,7 +1900,6 @@ xserver_map_shell_surface(struct weston_wm *wm,
|
|||||||
{
|
{
|
||||||
struct weston_shell_interface *shell_interface =
|
struct weston_shell_interface *shell_interface =
|
||||||
&wm->server->compositor->shell_interface;
|
&wm->server->compositor->shell_interface;
|
||||||
struct theme *t = window->wm->theme;
|
|
||||||
|
|
||||||
if (!shell_interface->create_shell_surface)
|
if (!shell_interface->create_shell_surface)
|
||||||
return;
|
return;
|
||||||
@ -1922,8 +1921,8 @@ xserver_map_shell_surface(struct weston_wm *wm,
|
|||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
shell_interface->set_xwayland(window->shsurf,
|
shell_interface->set_xwayland(window->shsurf,
|
||||||
window->x + t->margin,
|
window->x,
|
||||||
window->y + t->margin,
|
window->y,
|
||||||
WL_SHELL_SURFACE_TRANSIENT_INACTIVE);
|
WL_SHELL_SURFACE_TRANSIENT_INACTIVE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user