fix vsync drm by using correct drm path; by mrme0w _aT_ protonmail DOT ch,

thanks! While here take MAINTAINER. ok sthen@, jca@
This commit is contained in:
thfr 2019-05-24 17:43:05 +00:00
parent beea66bd73
commit 177e19c52e
3 changed files with 22 additions and 9 deletions

View File

@ -1,16 +1,18 @@
# $OpenBSD: Makefile,v 1.7 2019/05/09 21:13:26 danj Exp $
# $OpenBSD: Makefile,v 1.8 2019/05/24 17:43:05 thfr Exp $
COMMENT = lightweight compositor for X, forked from xcompmgr-dana
V = 0.1_beta2
PKGNAME = compton-${V}
DISTNAME = compton-git-v0.1_beta2-2013-10-21
REVISION = 4
REVISION = 5
CATEGORIES = x11
HOMEPAGE = https://github.com/chjj/compton
MAINTAINER = Thomas Frohwein <thfr@openbsd.org>
# MIT
PERMIT_PACKAGE_CDROM = Yes

View File

@ -1,6 +1,7 @@
$OpenBSD: patch-src_compton_c,v 1.1.1.1 2014/10/27 11:21:49 sthen Exp $
--- src/compton.c.orig Mon Oct 21 19:47:01 2013
+++ src/compton.c Sun Oct 26 00:56:53 2014
$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;
@ -10,6 +11,15 @@ $OpenBSD: patch-src_compton_c,v 1.1.1.1 2014/10/27 11:21:49 sthen Exp $
}
}
@@ -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;
}

View File

@ -1,12 +1,13 @@
$OpenBSD: patch-src_opengl_c,v 1.1 2019/02/13 20:36:08 matthieu Exp $
$OpenBSD: patch-src_opengl_c,v 1.2 2019/05/24 17:43:05 thfr Exp $
https://github.com/yshui/compton/commit/bf29b2d
Avoid using 10bit FBConfigs
Fix weird color issue with Mesa 18.0
--- src/opengl.c.orig Mon Oct 21 16:17:01 2013
+++ src/opengl.c Tue Feb 12 21:14:44 2019
@@ -497,6 +497,16 @@
Index: src/opengl.c
--- src/opengl.c.orig
+++ src/opengl.c
@@ -497,6 +497,16 @@ glx_cmp_fbconfig(session_t *ps,
return -1;
if (!pfbc_b)
return 1;