openbsd-ports/x11/compton/patches/patch-src_compton_c
thfr 177e19c52e fix vsync drm by using correct drm path; by mrme0w _aT_ protonmail DOT ch,
thanks! While here take MAINTAINER. ok sthen@, jca@
2019-05-24 17:43:05 +00:00

32 lines
794 B
Plaintext

$OpenBSD: patch-src_compton_c,v 1.2 2019/05/24 17:43:05 thfr Exp $
Index: src/compton.c
--- src/compton.c.orig
+++ src/compton.c
@@ -1665,6 +1665,8 @@ win_paint_win(session_t *ps, win *w, XserverRegion reg
reg_paint, pcache_reg);
break;
#endif
+ default:
+ break;
}
}
@@ -5825,7 +5827,7 @@ static bool
vsync_drm_init(session_t *ps) {
#ifdef CONFIG_VSYNC_DRM
// Should we always open card0?
- if (ps->drm_fd < 0 && (ps->drm_fd = open("/dev/dri/card0", O_RDWR)) < 0) {
+ if (ps->drm_fd < 0 && (ps->drm_fd = open("/dev/drm0", O_RDWR)) < 0) {
printf_errf("(): Failed to open device.");
return false;
}
@@ -6165,6 +6167,8 @@ init_filters(session_t *ps) {
return false;
}
#endif
+ default:
+ break;
}
}