From owner-svn-ports-head@freebsd.org Thu May 10 20:02:35 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DFD74FD53EC; Thu, 10 May 2018 20:02:34 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8D9A17144E; Thu, 10 May 2018 20:02:34 +0000 (UTC) (envelope-from asomers@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 6EA1F2517E; Thu, 10 May 2018 20:02:34 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4AK2Yjw094352; Thu, 10 May 2018 20:02:34 GMT (envelope-from asomers@FreeBSD.org) Received: (from asomers@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4AK2XTd094348; Thu, 10 May 2018 20:02:33 GMT (envelope-from asomers@FreeBSD.org) Message-Id: <201805102002.w4AK2XTd094348@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: asomers set sender to asomers@FreeBSD.org using -f From: Alan Somers Date: Thu, 10 May 2018 20:02:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r469574 - in head/x11-wm/fluxbox: . files X-SVN-Group: ports-head X-SVN-Commit-Author: asomers X-SVN-Commit-Paths: in head/x11-wm/fluxbox: . files X-SVN-Commit-Revision: 469574 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 May 2018 20:02:35 -0000 Author: asomers (src committer) Date: Thu May 10 20:02:33 2018 New Revision: 469574 URL: https://svnweb.freebsd.org/changeset/ports/469574 Log: x11-wm/fluxbox: x11-wm/fluxbox: apply upstream patch for multiple bugs Fixes upstream bugs 1058, 1102, 1111, and 1140. Fluxbox hasn't made a release for 3 years, so we should stop waiting and patch our ports tree. https://github.com/fluxbox/fluxbox/commit/dcdde4d32c93d01df205bc06d7dfcbd356be031f https://sourceforge.net/p/fluxbox/bugs/1140/ https://sourceforge.net/p/fluxbox/bugs/1111/ https://sourceforge.net/p/fluxbox/bugs/1102/ https://sourceforge.net/p/fluxbox/bugs/1058/ PR: 227792 Approved by: maintainer timeout (jgh) Added: head/x11-wm/fluxbox/files/patch-src_FbRootWindow.cc (contents, props changed) head/x11-wm/fluxbox/files/patch-src_FbRootWindow.hh (contents, props changed) head/x11-wm/fluxbox/files/patch-src_FbWinFrame.cc (contents, props changed) head/x11-wm/fluxbox/files/patch-src_Screen.cc (contents, props changed) Modified: head/x11-wm/fluxbox/Makefile Modified: head/x11-wm/fluxbox/Makefile ============================================================================== --- head/x11-wm/fluxbox/Makefile Thu May 10 19:43:33 2018 (r469573) +++ head/x11-wm/fluxbox/Makefile Thu May 10 20:02:33 2018 (r469574) @@ -3,7 +3,7 @@ PORTNAME= fluxbox PORTVERSION= 1.3.7 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11-wm MASTER_SITES= SF DISTFILES= ${DISTNAME}${EXTRACT_SUFX} Added: head/x11-wm/fluxbox/files/patch-src_FbRootWindow.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/fluxbox/files/patch-src_FbRootWindow.cc Thu May 10 20:02:33 2018 (r469574) @@ -0,0 +1,24 @@ +--- src/FbRootWindow.cc.orig 2015-02-08 10:44:45 UTC ++++ src/FbRootWindow.cc +@@ -30,7 +30,8 @@ FbRootWindow::FbRootWindow(int screen_num): + m_colormap(0), + m_decorationDepth(0), + m_decorationVisual(0), +- m_decorationColormap(0) { ++ m_decorationColormap(0), ++ m_maxDepth(depth()) { + + Display *disp = FbTk::App::instance()->display(); + +@@ -55,9 +56,9 @@ FbRootWindow::FbRootWindow(int screen_num): + + for (int i = 0; i < vinfo_nitems; i++) { + if ((DefaultDepth(disp, screen_num) < vinfo_return[i].depth) +- && (static_cast(depth()) < vinfo_return[i].depth)){ ++ && (m_maxDepth < vinfo_return[i].depth)){ + m_visual = vinfo_return[i].visual; +- setDepth(vinfo_return[i].depth); ++ m_maxDepth = vinfo_return[i].depth; + } + + if((m_decorationDepth < vinfo_return[i].depth) Added: head/x11-wm/fluxbox/files/patch-src_FbRootWindow.hh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/fluxbox/files/patch-src_FbRootWindow.hh Thu May 10 20:02:33 2018 (r469574) @@ -0,0 +1,18 @@ +--- src/FbRootWindow.hh.orig 2015-02-08 10:44:45 UTC ++++ src/FbRootWindow.hh +@@ -41,6 +41,7 @@ class FbRootWindow: public FbTk::FbWindow { (public) + int decorationDepth() const { return m_decorationDepth; } + Visual *decorationVisual() const { return m_decorationVisual; } + Colormap decorationColormap() const { return m_decorationColormap; } ++ int maxDepth() const { return m_maxDepth; } + + private: + Visual *m_visual; +@@ -49,6 +50,7 @@ class FbRootWindow: public FbTk::FbWindow { (public) + int m_decorationDepth; + Visual *m_decorationVisual; + Colormap m_decorationColormap; ++ int m_maxDepth; + }; + + #endif // FBROOTWINDOW_HH Added: head/x11-wm/fluxbox/files/patch-src_FbWinFrame.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/fluxbox/files/patch-src_FbWinFrame.cc Thu May 10 20:02:33 2018 (r469574) @@ -0,0 +1,13 @@ +--- src/FbWinFrame.cc.orig 2015-02-08 10:44:45 UTC ++++ src/FbWinFrame.cc +@@ -115,8 +115,8 @@ FbWinFrame::FbWinFrame(BScreen &screen, unsigned int c + m_state(state), + m_window(theme->screenNum(), state.x, state.y, state.width, state.height, s_mask, true, false, + client_depth, InputOutput, +- ((client_depth == 32) && (screen.rootWindow().depth() == 32) ? screen.rootWindow().visual() : CopyFromParent), +- ((client_depth == 32) && (screen.rootWindow().depth() == 32) ? screen.rootWindow().colormap() : CopyFromParent)), ++ (client_depth == screen.rootWindow().maxDepth() ? screen.rootWindow().visual() : CopyFromParent), ++ (client_depth == screen.rootWindow().maxDepth() ? screen.rootWindow().colormap() : CopyFromParent)), + m_layeritem(window(), *screen.layerManager().getLayer(ResourceLayer::NORMAL)), + m_titlebar(m_window, 0, 0, 100, 16, s_mask, false, false, + screen.rootWindow().decorationDepth(), InputOutput, Added: head/x11-wm/fluxbox/files/patch-src_Screen.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-wm/fluxbox/files/patch-src_Screen.cc Thu May 10 20:02:33 2018 (r469574) @@ -0,0 +1,11 @@ +--- src/Screen.cc.orig 2015-02-08 10:44:45 UTC ++++ src/Screen.cc +@@ -297,7 +297,7 @@ BScreen::BScreen(FbTk::ResourceManager &rm, + "using visual 0x%lx, depth %d\n", + "informational message saying screen number (%d), visual (%lx), and colour depth (%d)").c_str(), + screenNumber(), XVisualIDFromVisual(rootWindow().visual()), +- rootWindow().depth()); ++ rootWindow().maxDepth()); + #endif // DEBUG + + FbTk::EventManager *evm = FbTk::EventManager::instance();