Update libdecor to upstream commit 4f2c03d5 dated March 4, 2024

This commit is contained in:
ManoloFLTK 2024-03-13 15:14:57 +01:00
parent 3fafeb9ea1
commit 56f49828f4
4 changed files with 4 additions and 4 deletions

View File

@ -148,7 +148,7 @@ os_resize_anonymous_file(int fd, off_t size)
* XDG_RUNTIME_DIR.
*/
int
os_create_anonymous_file(off_t size)
libdecor_os_create_anonymous_file(off_t size)
{
static const char template[] = "/libdecor-shared-XXXXXX";
const char *path;

View File

@ -29,6 +29,6 @@
#include <sys/types.h>
int
os_create_anonymous_file(off_t size);
libdecor_os_create_anonymous_file(off_t size);
#endif /* OS_COMPATIBILITY_H */

View File

@ -597,7 +597,7 @@ create_shm_buffer(struct libdecor_plugin_cairo *plugin_cairo,
stride = buffer_width * 4;
size = stride * buffer_height;
fd = os_create_anonymous_file(size);
fd = libdecor_os_create_anonymous_file(size);
if (fd < 0) {
fprintf(stderr, "creating a buffer file for %d B failed: %s\n",
size, strerror(errno));

View File

@ -612,7 +612,7 @@ create_shm_buffer(struct libdecor_plugin_gtk *plugin_gtk,
stride = buffer_width * 4;
size = stride * buffer_height;
fd = os_create_anonymous_file(size);
fd = libdecor_os_create_anonymous_file(size);
if (fd < 0) {
fprintf(stderr, "creating a buffer file for %d B failed: %s\n",
size, strerror(errno));