From nobody Tue Jul 11 05:04:14 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R0TLR29F7z4gtCm; Tue, 11 Jul 2023 05:04:15 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R0TLR1bRpz44xL; Tue, 11 Jul 2023 05:04:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689051855; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IbY0Efi5MqWvGeDWamkdf5hqYcHXbSeG+uTvkrYgMTE=; b=MtkWXZbUpNe/GbzOzKTFSkgjqHDPzIJcRDMigvLjlWnSsko5UbqfDsYJqrM5STthEKhZm8 NfSVTm29fHCGq4QeFd1BgFaELQ3qM5Xb6JpH2ny0ne5fcLWfNGFtm/pSKGT0vi6AorWGXs alJ8Wc3ritZQpE24JSGH8Gie3xOLhVHJdsIEWuctMfH13TDhjzILUHWWE2V2nwa7Rg3v1X 9QBxrpAFBF29RARgK/tOmA30OJeorChItp8ucFVpc0Vr0Sz6pwN4F18Unrv5xPDMbMWMyV cSMRnVhUNH2WcKakK0VYT76ENmSgs4FdSbG7BYA6pwqJJTkbcY8HWj6VHSSCSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689051855; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IbY0Efi5MqWvGeDWamkdf5hqYcHXbSeG+uTvkrYgMTE=; b=NGjFxQx8crjoFsIziJCwc//OBqpeQIVf1RlVxcbu4+3XsWDnt1kU0f+2+zh0d05qh8Y8JV PN3IG07wiPy1m/v0yGVBWeZU6FTsccTolwhRn0NX2fj8CTMhKTp2ZkSHdk2Z7fPDNStwmi hE7q8lv7OjB1JNoDko+xmKB+CuU4LTUbztsxeNwXWceP5satiJ82fDtAtWUc6XC5z5OFms CTcsj4pfMes1IgzA5xskCLl4thnMnqenwZvDjzZyCBosAbUehQCeK3yQ0ZeUhmNk+tqflU BXGynT/PSP0x4wRnPuxair3DCvMEpXANcl2d5ScsI3+OL+/49GMSxofJpNF/pw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689051855; a=rsa-sha256; cv=none; b=nCuEaHfv6QhjRTd9rWym4sRUsPaC9MZHvSPg6mBcMkVfyeCtBy8/kebzz8nwsxoSbKTbly istv3Q4GonNNY4+lOZr9Z/eGyX4PhLFWEpQO2uWtDfwthNHExtljfdEFqB3OfJNhwiuR5r 2VC0+bQUDp+6c9PfWqRwJTPsCav32zRxrU5hWyewM7iEbCKSfhKWiXUAortG3MpXLn5WkM D1e/Xs2fKOx5Uxl/Ucm2XbVjGcV/jrtSNRl/VDD1oyE/6HqngOgMsqjI6S8bm8C5apS4br BkeCRWNoXtA7xV5XDXqjnlbpLN20ylEo9RFLK/Ph1hHiyayqvCAMgaNnvSCD1Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4R0TLR0gGsz1Ch6; Tue, 11 Jul 2023 05:04:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36B54E2O013725; Tue, 11 Jul 2023 05:04:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36B54E48013724; Tue, 11 Jul 2023 05:04:14 GMT (envelope-from git) Date: Tue, 11 Jul 2023 05:04:14 GMT Message-Id: <202307110504.36B54E48013724@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: 9b2ee36dbfde - main - x11-toolkits/wlroots-devel: update to 0.16.0.643 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9b2ee36dbfde5b76d84b12490ae471ba82be8929 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=9b2ee36dbfde5b76d84b12490ae471ba82be8929 commit 9b2ee36dbfde5b76d84b12490ae471ba82be8929 Author: Jan Beich AuthorDate: 2023-07-03 07:46:54 +0000 Commit: Jan Beich CommitDate: 2023-07-11 05:03:23 +0000 x11-toolkits/wlroots-devel: update to 0.16.0.643 Changes: https://gitlab.freedesktop.org/wlroots/wlroots/-/compare/bbd53b3b46...214df8eda0 --- x11-toolkits/wlroots-devel/Makefile | 4 +- x11-toolkits/wlroots-devel/distinfo | 6 +- x11-wm/hyprland/Makefile | 2 +- x11-wm/hyprland/files/patch-wlroots-0.17 | 120 +++++++++++++++++++++++++++++++ 4 files changed, 126 insertions(+), 6 deletions(-) diff --git a/x11-toolkits/wlroots-devel/Makefile b/x11-toolkits/wlroots-devel/Makefile index 55f697dfe8e1..bfe0f3800aa4 100644 --- a/x11-toolkits/wlroots-devel/Makefile +++ b/x11-toolkits/wlroots-devel/Makefile @@ -1,5 +1,5 @@ PORTNAME= wlroots -DISTVERSION= 0.16.0-623 +DISTVERSION= 0.16.0-643 DISTVERSIONSUFFIX= -g${GL_COMMIT:C/(.{12}).*/\1/} CATEGORIES= x11-toolkits PKGNAMESUFFIX= -devel @@ -27,7 +27,7 @@ USE_GL= gbm USE_XORG= pixman USE_LDCONFIG= yes GL_SITE= https://gitlab.freedesktop.org -GL_COMMIT= bbd53b3b46312840f1e699c7a8c49ccadfc438b4 +GL_COMMIT= 214df8eda07d18b032abfcf525c8344e077c0c7e MESON_ARGS= -Dexamples=false -Dbackends=${BACKENDS:ts,} -Drenderers=${RENDERERS:ts,} .ifdef PKGNAMESUFFIX diff --git a/x11-toolkits/wlroots-devel/distinfo b/x11-toolkits/wlroots-devel/distinfo index fa482b06b1c7..bda10a53af3a 100644 --- a/x11-toolkits/wlroots-devel/distinfo +++ b/x11-toolkits/wlroots-devel/distinfo @@ -1,6 +1,6 @@ -TIMESTAMP = 1688220330 -SHA256 (wlroots-wlroots-bbd53b3b46312840f1e699c7a8c49ccadfc438b4_GL0.tar.gz) = d4ab00b07639478569a2118119921575e8e11db94be6495f8e6ed2194c436ce7 -SIZE (wlroots-wlroots-bbd53b3b46312840f1e699c7a8c49ccadfc438b4_GL0.tar.gz) = 631453 +TIMESTAMP = 1688370414 +SHA256 (wlroots-wlroots-214df8eda07d18b032abfcf525c8344e077c0c7e_GL0.tar.gz) = 42f1ea360ac5aa24ff7f6af55d6b1542e5406438300dc13d8c8ef630d79e89c5 +SIZE (wlroots-wlroots-214df8eda07d18b032abfcf525c8344e077c0c7e_GL0.tar.gz) = 631599 SHA256 (10f80a8f1bb2.patch) = ca65f8eecf32e7364d5ba43cd9ee91060710a6fb8392892c86ad71e4f2a4c0b5 SIZE (10f80a8f1bb2.patch) = 6097 SHA256 (3196c73d487f.patch) = 69c6bc4658852bb45a24b129f625a7faaed8035dab0d79c388ae74d650beacdc diff --git a/x11-wm/hyprland/Makefile b/x11-wm/hyprland/Makefile index 869a838aed92..b52673d17ec9 100644 --- a/x11-wm/hyprland/Makefile +++ b/x11-wm/hyprland/Makefile @@ -1,7 +1,7 @@ PORTNAME= hyprland DISTVERSIONPREFIX= v DISTVERSION= 0.26.0 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= x11-wm wayland PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ diff --git a/x11-wm/hyprland/files/patch-wlroots-0.17 b/x11-wm/hyprland/files/patch-wlroots-0.17 new file mode 100644 index 000000000000..526c8fbc4031 --- /dev/null +++ b/x11-wm/hyprland/files/patch-wlroots-0.17 @@ -0,0 +1,120 @@ +Apply https://github.com/swaywm/sway/commit/6f1a3b6652b9 + +../src/Compositor.cpp:461:5: error: use of undeclared identifier 'wlr_xcursor_manager_set_cursor_image'; did you mean 'wlr_xcursor_manager_get_xcursor'? + wlr_xcursor_manager_set_cursor_image(m_sWLRXCursorMgr, "left_ptr", m_sWLRCursor); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../src/render/Renderer.cpp:1898:17: error: use of undeclared identifier 'wlr_xcursor_manager_set_cursor_image'; did you mean 'wlr_xcursor_manager_get_xcursor'? + wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "left_ptr", g_pCompositor->m_sWLRCursor); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../src/managers/input/InputManager.cpp:295:21: error: use of undeclared identifier 'wlr_xcursor_manager_set_cursor_image'; did you mean 'wlr_xcursor_manager_get_xcursor'? + wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "crosshair", g_pCompositor->m_sWLRCursor); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../src/managers/input/InputManager.cpp:297:21: error: use of undeclared identifier 'wlr_xcursor_manager_set_cursor_image'; did you mean 'wlr_xcursor_manager_get_xcursor'? + wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "left_ptr", g_pCompositor->m_sWLRCursor); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../src/managers/input/InputManager.cpp:470:9: error: use of undeclared identifier 'wlr_xcursor_manager_set_cursor_image'; did you mean 'wlr_xcursor_manager_get_xcursor'? + wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "crosshair", g_pCompositor->m_sWLRCursor); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../src/managers/input/InputManager.cpp:496:13: error: use of undeclared identifier 'wlr_xcursor_manager_set_cursor_image'; did you mean 'wlr_xcursor_manager_get_xcursor'? + wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "left_ptr", g_pCompositor->m_sWLRCursor); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../src/managers/input/InputManager.cpp:508:13: error: use of undeclared identifier 'wlr_xcursor_manager_set_cursor_image'; did you mean 'wlr_xcursor_manager_get_xcursor'? + wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "crosshair", g_pCompositor->m_sWLRCursor); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../src/managers/input/InputManager.cpp:1431:5: error: use of undeclared identifier 'wlr_xcursor_manager_set_cursor_image'; did you mean 'wlr_xcursor_manager_get_xcursor'? + wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, name.c_str(), g_pCompositor->m_sWLRCursor); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../src/managers/input/InputManager.cpp:1441:9: error: use of undeclared identifier 'wlr_xcursor_manager_set_cursor_image'; did you mean 'wlr_xcursor_manager_get_xcursor'? + wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "left_ptr", g_pCompositor->m_sWLRCursor); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +--- src/Compositor.cpp.orig 2023-07-11 02:50:09 UTC ++++ src/Compositor.cpp +@@ -458,7 +458,7 @@ void CCompositor::startCompositor() { + throw std::runtime_error("The backend could not start!"); + } + +- wlr_xcursor_manager_set_cursor_image(m_sWLRXCursorMgr, "left_ptr", m_sWLRCursor); ++ wlr_cursor_set_xcursor(m_sWLRCursor, m_sWLRXCursorMgr, "left_ptr"); + + #ifdef USES_SYSTEMD + if (sd_booted() > 0) +--- src/managers/input/InputManager.cpp.orig 2023-05-29 17:17:38 UTC ++++ src/managers/input/InputManager.cpp +@@ -292,9 +292,9 @@ void CInputManager::mouseMoveUnified(uint32_t time, bo + if (g_pHyprRenderer->m_bHasARenderedCursor) { + // TODO: maybe wrap? + if (m_ecbClickBehavior == CLICKMODE_KILL) +- wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "crosshair", g_pCompositor->m_sWLRCursor); ++ wlr_cursor_set_xcursor(g_pCompositor->m_sWLRCursor, g_pCompositor->m_sWLRXCursorMgr, "crosshair"); + else +- wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "left_ptr", g_pCompositor->m_sWLRCursor); ++ wlr_cursor_set_xcursor(g_pCompositor->m_sWLRCursor, g_pCompositor->m_sWLRXCursorMgr, "left_ptr"); + } + + m_bEmptyFocusCursorSet = true; +@@ -361,7 +361,7 @@ void CInputManager::mouseMoveUnified(uint32_t time, bo + // if (!m_bCursorImageOverridden) { + // if (!VECINRECT(m_vLastCursorPosFloored, pFoundWindow->m_vRealPosition.vec().x, pFoundWindow->m_vRealPosition.vec().y, + // pFoundWindow->m_vRealPosition.vec().x + pFoundWindow->m_vRealSize.vec().x, pFoundWindow->m_vRealPosition.vec().y + pFoundWindow->m_vRealSize.vec().y)) { +- // wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "left_ptr", g_pCompositor->m_sWLRCursor); ++ // wlr_cursor_set_xcursor(g_pCompositor->m_sWLRCursor, g_pCompositor->m_sWLRXCursorMgr, "left_ptr"); + // cursorSurfaceInfo.bUsed = false; + // } else if (!cursorSurfaceInfo.bUsed) { + // cursorSurfaceInfo.bUsed = true; +@@ -467,7 +467,7 @@ void CInputManager::processMouseRequest(wlr_seat_point + } + + if (m_ecbClickBehavior == CLICKMODE_KILL) { +- wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "crosshair", g_pCompositor->m_sWLRCursor); ++ wlr_cursor_set_xcursor(g_pCompositor->m_sWLRCursor, g_pCompositor->m_sWLRXCursorMgr, "crosshair"); + return; + } + +@@ -493,7 +493,7 @@ void CInputManager::setClickMode(eClickBehaviorMode mo + case CLICKMODE_DEFAULT: + Debug::log(LOG, "SetClickMode: DEFAULT"); + m_ecbClickBehavior = CLICKMODE_DEFAULT; +- wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "left_ptr", g_pCompositor->m_sWLRCursor); ++ wlr_cursor_set_xcursor(g_pCompositor->m_sWLRCursor, g_pCompositor->m_sWLRXCursorMgr, "left_ptr"); + break; + + case CLICKMODE_KILL: +@@ -505,7 +505,7 @@ void CInputManager::setClickMode(eClickBehaviorMode mo + refocus(); + + // set cursor +- wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "crosshair", g_pCompositor->m_sWLRCursor); ++ wlr_cursor_set_xcursor(g_pCompositor->m_sWLRCursor, g_pCompositor->m_sWLRXCursorMgr, "crosshair"); + break; + default: break; + } +@@ -1428,7 +1428,7 @@ void CInputManager::setCursorImageUntilUnset(std::stri + } + + void CInputManager::setCursorImageUntilUnset(std::string name) { +- wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, name.c_str(), g_pCompositor->m_sWLRCursor); ++ wlr_cursor_set_xcursor(g_pCompositor->m_sWLRCursor, g_pCompositor->m_sWLRXCursorMgr, name.c_str()); + m_bCursorImageOverridden = true; + } + +@@ -1438,7 +1438,7 @@ void CInputManager::unsetCursorImage() { + + m_bCursorImageOverridden = false; + if (!g_pHyprRenderer->m_bWindowRequestedCursorHide) +- wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "left_ptr", g_pCompositor->m_sWLRCursor); ++ wlr_cursor_set_xcursor(g_pCompositor->m_sWLRCursor, g_pCompositor->m_sWLRXCursorMgr, "left_ptr"); + } + + std::string CInputManager::deviceNameToInternalString(std::string in) { +--- src/render/Renderer.cpp.orig 2023-07-11 02:50:09 UTC ++++ src/render/Renderer.cpp +@@ -1895,7 +1895,7 @@ void CHyprRenderer::ensureCursorRenderingMode() { + m_bHasARenderedCursor = true; + + if (!m_bWindowRequestedCursorHide) +- wlr_xcursor_manager_set_cursor_image(g_pCompositor->m_sWLRXCursorMgr, "left_ptr", g_pCompositor->m_sWLRCursor); ++ wlr_cursor_set_xcursor(g_pCompositor->m_sWLRCursor, g_pCompositor->m_sWLRXCursorMgr, "left_ptr"); + + Debug::log(LOG, "Showing the cursor (timeout)"); +