mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-09 15:19:11 +02:00
Handle repositioning of xwayland views
This commit is contained in:
parent
73e8db1fa3
commit
3e2f90fa1e
1 changed files with 9 additions and 1 deletions
10
xwayland.c
10
xwayland.c
|
|
@ -150,7 +150,15 @@ handle_xwayland_surface_commit(struct wl_listener *listener, void *_data) {
|
|||
struct cg_xwayland_view *xwayland_view =
|
||||
wl_container_of(listener, xwayland_view, commit);
|
||||
struct cg_view *view = &xwayland_view->view;
|
||||
view_damage_part(view);
|
||||
/* xwayland surface has moved */
|
||||
if(xwayland_view->xwayland_surface->x != view->ox || xwayland_view->xwayland_surface->y != view->oy) {
|
||||
output_damage_surface(view->workspace->output, view->wlr_surface,view->ox,view->oy,true);
|
||||
view->ox=xwayland_view->xwayland_surface->x;
|
||||
view->oy=xwayland_view->xwayland_surface->y;
|
||||
output_damage_surface(view->workspace->output, view->wlr_surface,view->ox,view->oy,true);
|
||||
} else {
|
||||
view_damage_part(view);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue