No description provided.
wayland: use wl_shm v2 if available #1772
dnkl
commented 2024年07月18日 08:08:11 +02:00
dnkl
added the 2024年07月18日 08:08:11 +02:00
enhancement
label
dnkl
force-pushed shm-v2 from
to
2024年07月18日 08:23:33 +02:00
Compare
277133fdba
4f25e1ba9f
dnkl
manually merged commit 4f25e1ba9f into master 2024年07月18日 08:44:18 +02:00
mckellygit
commented 2024年07月18日 13:10:47 +02:00
Hi,
Not sure, but maybe need to wrap a few more lines with the new ifdef ?
Something like -
+#if defined(WL_SHM_RELEASE_SINCE_VERSION)
wayl->use_shm_release = version >= WL_SHM_RELEASE_SINCE_VERSION;
+#else
+ wayl->use_shm_release = false;
+#endif
if (wayl->shm != NULL) {
+#if defined(WL_SHM_RELEASE_SINCE_VERSION)
if (wayl->use_shm_release)
wl_shm_release(wayl->shm);
else
+#endif
wl_shm_destroy(wayl->shm);
thx always,
-m
Hi,
Not sure, but maybe need to wrap a few more lines with the new ifdef ?
Something like -
```
+#if defined(WL_SHM_RELEASE_SINCE_VERSION)
wayl->use_shm_release = version >= WL_SHM_RELEASE_SINCE_VERSION;
+#else
+ wayl->use_shm_release = false;
+#endif
```
```
if (wayl->shm != NULL) {
+#if defined(WL_SHM_RELEASE_SINCE_VERSION)
if (wayl->use_shm_release)
wl_shm_release(wayl->shm);
else
+#endif
wl_shm_destroy(wayl->shm);
```
thx always,
-m
dnkl
commented 2024年07月18日 14:28:45 +02:00
@mckellygit yes, absolutely necessary. Fixed in e11a4ab6af
@mckellygit yes, absolutely necessary. Fixed in https://codeberg.org/dnkl/foot/commit/e11a4ab6af29cb841feaf2cf4785cfd1a3d709fd
Sign in to join this conversation.
No reviewers
Labels
Clear labels
bug
Something is not working
compositor
Compositor bug
doc
Documentation
duplicate
This issue or pull request already exists
easy
enhancement
New feature
help wanted
Need some help
invalid
Something is wrong
not-a-bug
performance
question
More information is needed
refactor
regression
upstream
Issue needs to be fixed upstream
what do you think?
Looking for opinions
wiki
Issue or patch for the wiki
wontfix
This won't be fixed
No labels
bug
compositor
doc
duplicate
easy
enhancement
help wanted
invalid
not-a-bug
performance
question
refactor
regression
upstream
what do you think?
wiki
wontfix
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
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
dnkl/foot!1772
Loading...
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "shm-v2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?