pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/wm/fluxbox fluxbox: add an upstream patch to fix windo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dd6d320a8a05
branches:  trunk
changeset: 371249:dd6d320a8a05
user:      gutteridge <gutteridge%pkgsrc.org@localhost>
date:      Fri Jan 07 17:32:12 2022 +0000

description:
fluxbox: add an upstream patch to fix window sizing edge cases

diffstat:

 wm/fluxbox/Makefile         |   4 ++--
 wm/fluxbox/distinfo         |   4 ++--
 wm/fluxbox/patches/patch-bj |  37 ++++++++++++++++++++++++++++++++++---
 3 files changed, 38 insertions(+), 7 deletions(-)

diffs (81 lines):

diff -r 4bfdfd225d83 -r dd6d320a8a05 wm/fluxbox/Makefile
--- a/wm/fluxbox/Makefile       Fri Jan 07 17:22:55 2022 +0000
+++ b/wm/fluxbox/Makefile       Fri Jan 07 17:32:12 2022 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.72 2020/09/25 12:25:10 nia Exp $
+# $NetBSD: Makefile,v 1.73 2022/01/07 17:32:12 gutteridge Exp $
 
 DISTNAME=      fluxbox-1.3.7
-PKGREVISION=   5
+PKGREVISION=   6
 CATEGORIES=    wm x11
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=fluxbox/}
 EXTRACT_SUFX=  .tar.bz2
diff -r 4bfdfd225d83 -r dd6d320a8a05 wm/fluxbox/distinfo
--- a/wm/fluxbox/distinfo       Fri Jan 07 17:22:55 2022 +0000
+++ b/wm/fluxbox/distinfo       Fri Jan 07 17:32:12 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.38 2021/10/26 11:25:12 nia Exp $
+$NetBSD: distinfo,v 1.39 2022/01/07 17:32:12 gutteridge Exp $
 
 BLAKE2s (fluxbox-1.3.7.tar.bz2) = c3dfa1e8b204c4874ba372af05402b7a277bb1ebac2e7cc15c92c608ea26bdf7
 SHA512 (fluxbox-1.3.7.tar.bz2) = c40cc765f5d542210e18dca21b98b97a048c6685b605a68e2c64f4e886329f4e6d3a3a7e76b3ca0ce488242f38d0ee2a4d6dfebc9ce97d37c68f84c3948aac8c
@@ -9,7 +9,7 @@
 SHA1 (patch-be) = 0c8c0cfa12bbfeca28d76b12b488777b589bb43a
 SHA1 (patch-bf) = 7da25f4e9a0e738da7c24264a91e6ab036d5acf2
 SHA1 (patch-bg) = 8f4decdb2ff611dcc1af64145801fac35f83e25a
-SHA1 (patch-bj) = 9b0ac35028644b142073a498bc3d59324c51d349
+SHA1 (patch-bj) = baf714907cce1f71e69f85c80d8f98efeeeaf86f
 SHA1 (patch-bk) = ae0c9857dd0cd203c8ae3f4bf5a0c7126cf48c92
 SHA1 (patch-data_keys) = 79820ca4fd89227e24ae71bb1278f49b3930af85
 SHA1 (patch-src_fluxbox.cc) = a652d685cd80896b45bfa7b2dfd5e98b2561e326
diff -r 4bfdfd225d83 -r dd6d320a8a05 wm/fluxbox/patches/patch-bj
--- a/wm/fluxbox/patches/patch-bj       Fri Jan 07 17:22:55 2022 +0000
+++ b/wm/fluxbox/patches/patch-bj       Fri Jan 07 17:32:12 2022 +0000
@@ -1,8 +1,13 @@
-$NetBSD: patch-bj,v 1.2 2012/04/17 20:08:06 bsiegert Exp $
+$NetBSD: patch-bj,v 1.3 2022/01/07 17:32:12 gutteridge Exp $
+
+Fix builds with the SunPro compiler.
 
---- src/Window.cc.orig Sat Oct 29 13:45:51 2011
+Handle oversized windows: prevent both opposing edges from being offscreen.
+https://github.com/fluxbox/fluxbox/commit/299e098f5f6fc6d33684b3d4e80185c8a7899664
+
+--- src/Window.cc.orig 2015-02-08 10:44:45.373187009 +0000
 +++ src/Window.cc
-@@ -185,9 +185,10 @@ void lowerFluxboxWindow(FluxboxWindow &w
+@@ -166,9 +166,10 @@ void lowerFluxboxWindow(FluxboxWindow &w
          win.screen().layerManager().lock();
  
      // lower the windows from the top down, so they don't change stacking order
@@ -16,3 +21,29 @@
      for (; it != it_end; ++it) {
          if ((*it)->fbwindow() && !(*it)->fbwindow()->isIconic())
              // TODO: should we also check if it is the active client?
+@@ -478,6 +479,25 @@ void FluxboxWindow::init() {
+ 
+     fluxbox.attachSignals(*this);
+ 
++    if (!m_state.fullscreen) {
++        unsigned int new_width = 0, new_height = 0;
++        if (m_client->width() >= screen().width()) {
++            m_state.maximized |= WindowState::MAX_HORZ;
++            new_width = 2 * screen().width() / 3;
++        }
++        if (m_client->height() >= screen().height()) {
++            m_state.maximized |= WindowState::MAX_VERT;
++            new_height = 2 * screen().height() / 3;
++        }
++        if (new_width || new_height) {
++            const int maximized = m_state.maximized;
++            m_state.maximized = WindowState::MAX_NONE;
++            resize(new_width ? new_width : width(), new_height ? new_height : height());
++            m_placed = false;
++            m_state.maximized = maximized;
++        }
++    }
++
+     // this window is managed, we are now allowed to modify actual state
+     m_initialized = true;
+ 



Home | Main Index | Thread Index | Old Index