From owner-svn-ports-branches@freebsd.org Sun Nov 29 20:38:25 2020 Return-Path: Delivered-To: svn-ports-branches@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8600D4AC5D8; Sun, 29 Nov 2020 20:38:25 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CkgDd3LGkz3Ngg; Sun, 29 Nov 2020 20:38:25 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 60D5F17554; Sun, 29 Nov 2020 20:38:25 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0ATKcP8X018601; Sun, 29 Nov 2020 20:38:25 GMT (envelope-from madpilot@FreeBSD.org) Received: (from madpilot@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0ATKcOZW018598; Sun, 29 Nov 2020 20:38:24 GMT (envelope-from madpilot@FreeBSD.org) Message-Id: <202011292038.0ATKcOZW018598@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: madpilot set sender to madpilot@FreeBSD.org using -f From: Guido Falsi Date: Sun, 29 Nov 2020 20:38:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r556600 - in branches/2020Q4/x11-wm/xfce4-wm: . files X-SVN-Group: ports-branches X-SVN-Commit-Author: madpilot X-SVN-Commit-Paths: in branches/2020Q4/x11-wm/xfce4-wm: . files X-SVN-Commit-Revision: 556600 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-branches@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for all the branches of the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Nov 2020 20:38:25 -0000 Author: madpilot Date: Sun Nov 29 20:38:24 2020 New Revision: 556600 URL: https://svnweb.freebsd.org/changeset/ports/556600 Log: MFH: r556577 Import xfce4-wm upstream patches which fix crashes at runtime. Obtained from: https://gitlab.xfce.org/xfce/xfwm4/-/issues/460 Approved by: ports-secteam (joneum) Added: branches/2020Q4/x11-wm/xfce4-wm/files/patch-XFixes-XError - copied unchanged from r556577, head/x11-wm/xfce4-wm/files/patch-XFixes-XError branches/2020Q4/x11-wm/xfce4-wm/files/patch-Xsync-XError - copied unchanged from r556577, head/x11-wm/xfce4-wm/files/patch-Xsync-XError Modified: branches/2020Q4/x11-wm/xfce4-wm/Makefile Directory Properties: branches/2020Q4/ (props changed) Modified: branches/2020Q4/x11-wm/xfce4-wm/Makefile ============================================================================== --- branches/2020Q4/x11-wm/xfce4-wm/Makefile Sun Nov 29 20:08:22 2020 (r556599) +++ branches/2020Q4/x11-wm/xfce4-wm/Makefile Sun Nov 29 20:38:24 2020 (r556600) @@ -3,7 +3,7 @@ PORTNAME= xfce4-wm PORTVERSION= 4.14.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11-wm xfce MASTER_SITES= XFCE DISTNAME= xfwm4-${DISTVERSIONFULL} Copied: branches/2020Q4/x11-wm/xfce4-wm/files/patch-XFixes-XError (from r556577, head/x11-wm/xfce4-wm/files/patch-XFixes-XError) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2020Q4/x11-wm/xfce4-wm/files/patch-XFixes-XError Sun Nov 29 20:38:24 2020 (r556600, copy of r556577, head/x11-wm/xfce4-wm/files/patch-XFixes-XError) @@ -0,0 +1,44 @@ +From c255a406bd353a24a9143b152f91e5eb39f69f1f Mon Sep 17 00:00:00 2001 +From: Olivier Fourdan +Date: Sat, 28 Nov 2020 21:16:20 +0100 +Subject: [PATCH] compositor: Handle XFixes XError + +XFixesSetPictureClipRegion() with the region from the client window can +cause a RenderBadPicture error. + +Make sure to include it within the XError trap. + +Signed-off-by: Olivier Fourdan +https://gitlab.xfce.org/xfce/xfwm4/-/issues/460 +--- + src/compositor.c | 9 +++++---- + 1 file changed, 5 insertions(+), 4 deletions(-) + +diff --git a/src/compositor.c b/src/compositor.c +index 5110f29c2..25baaabe5 100644 +--- src/compositor.c ++++ src/compositor.c +@@ -781,15 +781,16 @@ border_size (CWindow *cw) + myDisplayErrorTrapPush (display_info); + border = XFixesCreateRegionFromWindow (display_info->dpy, + cw->id, WindowRegionBounding); +- if ((myDisplayErrorTrapPop (display_info) != Success) || (border == None)) +- { +- return None; +- } + XFixesSetPictureClipRegion (display_info->dpy, cw->picture, 0, 0, border); + XFixesTranslateRegion (display_info->dpy, border, + cw->attr.x + cw->attr.border_width, + cw->attr.y + cw->attr.border_width); + ++ if (myDisplayErrorTrapPop (display_info) != Success) ++ { ++ return None; ++ } ++ + return border; + } + +-- +GitLab + Copied: branches/2020Q4/x11-wm/xfce4-wm/files/patch-Xsync-XError (from r556577, head/x11-wm/xfce4-wm/files/patch-Xsync-XError) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2020Q4/x11-wm/xfce4-wm/files/patch-Xsync-XError Sun Nov 29 20:38:24 2020 (r556600, copy of r556577, head/x11-wm/xfce4-wm/files/patch-Xsync-XError) @@ -0,0 +1,30 @@ +From 6b3c1ef155a01b61443b832b1922b560ef42ce24 Mon Sep 17 00:00:00 2001 +From: Olivier Fourdan +Date: Sat, 21 Nov 2020 14:05:04 +0100 +Subject: [PATCH] xsync: Handle XError + +XSync can fail, handle the XError gracefully. + +Signed-off-by: Olivier Fourdan +Closes: https://gitlab.xfce.org/xfce/xfwm4/-/issues/448 +--- + src/xsync.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/xsync.c b/src/xsync.c +index 920dfdc17..e1c379f9d 100644 +--- src/xsync.c ++++ src/xsync.c +@@ -113,7 +113,9 @@ clientDestroyXSyncAlarm (Client *c) + screen_info = c->screen_info; + display_info = screen_info->display_info; + ++ myDisplayErrorTrapPush (display_info); + XSyncDestroyAlarm (display_info->dpy, c->xsync_alarm); ++ myDisplayErrorTrapPopIgnored (display_info); + c->xsync_alarm = None; + } + } +-- +GitLab +