client: compose multi-display frames and map input across the view
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 20s
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Failing after 21s
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Failing after 22s
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Failing after 20s
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Failing after 19s
build / module (push) Failing after 17s
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Failing after 19s
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Failing after 19s
build / host-linux (push) Failing after 19s
build / host-windows-cross (push) Failing after 19s
build / obs (clang) (push) Failing after 19s
build / docs (push) Failing after 4s
build / obs (gcc) (push) Failing after 19s
build / idd (push) Canceled after 0s
build / host-windows-native (push) Canceled after 0s

Adds the EGL composition pass, the app:display selector and the input
coordinate shift needed when only part of the guest desktop is shown.
This commit is contained in:
donny committed 2026-07-28 07:13:18 +00:00
1 parent dfe8edfbc2
commit 95e55273ea
4 files changed
+113 -6

No files matched your search

+11 -2
View File
@@ -120,10 +120,14 @@ bool util_guestCurToLocal(struct DoublePoint *local)
if (!g_cursor.guest.valid || !g_state.posInfoValid)
return false;
/* The guest reports its cursor in virtual desktop coordinates. When only
* part of that desktop is on show, shift into the coordinates of the
* presented view. Both offsets are zero unless a single display of a
* multi-display guest has been selected. */
const struct DoublePoint point =
{
.x = g_cursor.guest.x + g_cursor.guest.hx,
.y = g_cursor.guest.y + g_cursor.guest.hy
.x = g_cursor.guest.x + g_cursor.guest.hx - g_state.viewX,
.y = g_cursor.guest.y + g_cursor.guest.hy - g_state.viewY
};
switch((g_state.rotate + g_params.winRotate) % LG_ROTATE_MAX)
@@ -190,6 +194,11 @@ void util_localCurToGuest(struct DoublePoint *guest)
default:
DEBUG_UNREACHABLE();
}
/* the guest addresses its cursor across the whole virtual desktop, so undo
* the shift applied when only part of that desktop is presented */
guest->x += g_state.viewX;
guest->y += g_state.viewY;
}
void util_rotatePoint(struct DoublePoint *point)