aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-09-20 22:56:10 +0100
committerVaxry <[email protected]>2024-09-20 22:56:15 +0100
commitdb0b764a5ac22e752d8557cc1e1e5a42ac58c7e4 (patch)
tree58cc733b81aa17655bc7b2712127634b153f87e6
parent278583b8a1ab66272a4c437ed1acd7936a6a5c36 (diff)
downloadHyprland-db0b764a5ac22e752d8557cc1e1e5a42ac58c7e4.tar.gz
Hyprland-db0b764a5ac22e752d8557cc1e1e5a42ac58c7e4.zip
shm: send a static list of shm formats
fixes #7733
-rw-r--r--src/protocols/core/Shm.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/protocols/core/Shm.cpp b/src/protocols/core/Shm.cpp
index b09326bd..a8c98bb0 100644
--- a/src/protocols/core/Shm.cpp
+++ b/src/protocols/core/Shm.cpp
@@ -193,11 +193,8 @@ void CWLSHMProtocol::bindManager(wl_client* client, void* data, uint32_t ver, ui
DRM_FORMAT_XBGR8888, DRM_FORMAT_ABGR8888, DRM_FORMAT_XRGB2101010, DRM_FORMAT_ARGB2101010, DRM_FORMAT_XBGR2101010, DRM_FORMAT_ABGR2101010,
};
- for (auto const& fmt : g_pHyprOpenGL->getDRMFormats()) {
- if (std::find(supportedShmFourccFormats.begin(), supportedShmFourccFormats.end(), fmt.drmFormat) == supportedShmFourccFormats.end())
- continue;
-
- shmFormats.push_back(fmt.drmFormat);
+ for (auto const& fmt : supportedShmFourccFormats) {
+ shmFormats.push_back(fmt);
}
}