1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
From: Constantin Piber <cp.piber@gmail.com>
Date: Tue, 18 Nov 2025 15:43:15 +0800
Subject: Fix FTBFS around a missing operator+
There seems to be a missing operator+(std::string, std::string_view) or
something, so cast it to std:;string.
Origin: https://github.com/cpiber/hyprland-ppa/blob/0dcd5f3101f7ced40879d0f34f337b1a2cdd79ae/hyprland/debian/patches/05-libcpp-port
Forwarded: not-needed
---
hyprctl/main.cpp | 2 +-
src/xwayland/XWM.hpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp
index e15a17f..c946fe2 100644
--- a/hyprctl/main.cpp
+++ b/hyprctl/main.cpp
@@ -270,7 +270,7 @@ int requestIPC(std::string_view filename, std::string_view arg) {
sockaddr_un serverAddress = {0};
serverAddress.sun_family = AF_UNIX;
- std::string socketPath = getRuntimeDir() + "/" + instanceSignature + "/" + filename;
+ std::string socketPath = getRuntimeDir() + "/" + instanceSignature + "/" + std::string(filename);
strncpy(serverAddress.sun_path, socketPath.c_str(), sizeof(serverAddress.sun_path) - 1);
diff --git a/src/xwayland/XWM.hpp b/src/xwayland/XWM.hpp
index b328a2c..9f9e785 100644
--- a/src/xwayland/XWM.hpp
+++ b/src/xwayland/XWM.hpp
@@ -214,7 +214,7 @@ class CXWM {
std::vector<SP<CX11DataOffer>> m_dndDataOffers;
inline xcb_connection_t* getConnection() {
- return m_connection ? *m_connection : nullptr;
+ return m_connection ? static_cast<xcb_connection_t*>(*m_connection) : nullptr;
}
struct {
CHyprSignalListener newWLSurface;
|