[GH-ISSUE #9] Gamescope window is offset if window decorations are applied #6

Closed
opened 2026-10-15 12:47:18 +00:00 by bsakaguchi · 4 comments
Owner

Originally created by @eetumos on GitHub (Apr 26, 2025).
Original GitHub issue: https://github.com/games-on-whales/gst-wayland-display/issues/9

First of all, thanks for this awesome project!

I came across this issue while creating a custom container image for Wolf. Installing Gamescope on Fedora or Ubuntu results in the Gamescope window being offset within gst-wayland-display. Windows are correctly positioned within Gamescope. After removing all libdecor plugins, Gamescope falls back to no window decorations and its window appears in the the correct position.

Gamescope works fine regardless of libdecor plugins if connected to GNOME instead of gst-wayland-display. Programs not using libdecor are positioned correctly within gst-wayland-display. I'm not sure if this issue affects other programs utilizing libdecor.

games-on-whales/gow doesn't seem to be affected because libdecor plugin installation is avoided with --no-install-recommends.

I created a repo for reproducing this issue. I'm using Fedora 41 with Podman and NVIDIA Container Toolkit. The scripts require modification to work with Docker or Intel/AMD GPUs. Below are screenshots of what I'm experiencing:

./run.sh ubuntu broken gamescope gst

./run.sh ubuntu fixed gamescope gst

Originally created by @eetumos on GitHub (Apr 26, 2025). Original GitHub issue: https://github.com/games-on-whales/gst-wayland-display/issues/9 First of all, thanks for this awesome project! I came across this issue while creating a custom container image for Wolf. Installing Gamescope on Fedora or Ubuntu results in the Gamescope window being offset within gst-wayland-display. Windows are correctly positioned within Gamescope. After removing all libdecor plugins, Gamescope falls back to no window decorations and its window appears in the the correct position. Gamescope works fine regardless of libdecor plugins if connected to GNOME instead of gst-wayland-display. Programs not using libdecor are positioned correctly within gst-wayland-display. I'm not sure if this issue affects other programs utilizing libdecor. [games-on-whales/gow](https://github.com/games-on-whales/gow) doesn't seem to be affected because libdecor plugin installation is avoided with `--no-install-recommends`. I created a [repo](https://github.com/eetumos/gow-libdecor) for reproducing this issue. I'm using Fedora 41 with Podman and NVIDIA Container Toolkit. The scripts require modification to work with Docker or Intel/AMD GPUs. Below are screenshots of what I'm experiencing: `./run.sh ubuntu broken gamescope gst` <img src="https://github.com/user-attachments/assets/b2d7d7b5-c196-43eb-86f0-dc3bb4e8b8f9" width=600> `./run.sh ubuntu fixed gamescope gst` <img src="https://github.com/user-attachments/assets/0c3096d8-c60f-4bdb-a46d-26882d05e931" width=600>
Author
Owner

@ABeltramo commented on GitHub (Apr 26, 2025):

Thanks for the very detailed report, probably the first time someone makes a full repo to reproduce the error. I really appreciate that!

I'll take a look at it as soon as I have a bit of free time!

<!-- gh-comment-id:2832301239 --> @ABeltramo commented on GitHub (Apr 26, 2025): Thanks for the very detailed report, probably the first time someone makes a full repo to reproduce the error. I really appreciate that! I'll take a look at it as soon as I have a bit of free time!
Author
Owner

@ABeltramo commented on GitHub (Apr 26, 2025):

Btw, I thought I had already merged github.com/games-on-whales/gst-wayland-display@6be99db14a but would you mind trying out a build from that branch? You can easily change it from the Wolf docker files.
I feel that this should be fixed by that commit..

<!-- gh-comment-id:2832302746 --> @ABeltramo commented on GitHub (Apr 26, 2025): Btw, I thought I had already merged https://github.com/games-on-whales/gst-wayland-display/commit/6be99db14afcadf2d1cb4a8f319edba351807543 but would you mind trying out a build from that branch? You can easily change it from the Wolf docker files. I feel that this should be fixed by that commit..
Author
Owner

@eetumos commented on GitHub (Apr 27, 2025):

This fixes the issue, thanks!

<!-- gh-comment-id:2833225035 --> @eetumos commented on GitHub (Apr 27, 2025): This fixes the issue, thanks!
Author
Owner

@ABeltramo commented on GitHub (Apr 27, 2025):

Thanks for confirming, I'll keep this open to remind me that I have to merge that PR! 😅

<!-- gh-comment-id:2833278190 --> @ABeltramo commented on GitHub (Apr 27, 2025): Thanks for confirming, I'll keep this open to remind me that I have to merge that PR! 😅
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
games-on-whales/gst-wayland-display#6
No description provided.