From b2de5b318456f2a045e247c25dc5512aebf28ec5 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Wed, 17 Nov 2021 18:37:35 +0100
Subject: Haiku patch


diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7505747..4529ad0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -55,7 +55,7 @@ if (NOT DISABLE_DBUS)
     find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS DBus)
 endif()
 
-if (UNIX AND NOT APPLE AND NOT NO_X11)
+if (UNIX AND NOT APPLE AND NOT HAIKU AND NOT NO_X11)
     add_definitions(-DQZ_WS_X11)
     find_package(XCB REQUIRED COMPONENTS XCB UTIL)
     find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS X11Extras)
diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt
index 3b7efff..03d61c2 100644
--- a/src/lib/CMakeLists.txt
+++ b/src/lib/CMakeLists.txt
@@ -362,7 +362,7 @@ if (HAVE_LIBINTL)
 endif()
 
 if (UNIX AND NOT APPLE)
-    if (NOT NO_X11)
+    if (NOT NO_X11 AND NOT HAIKU)
         target_link_libraries(FalkonPrivate XCB::XCB Qt5::X11Extras)
     endif()
 
-- 
2.30.2


From 18fb7b7ed48d7cf3d2678f7d4af6ad02bc44cba3 Mon Sep 17 00:00:00 2001
From: Gerasim Troeglazov <3dEyes@gmail.com>
Date: Sat, 27 Nov 2021 22:09:34 +1000
Subject: Set default theme for Haiku


diff --git a/src/lib/app/qzcommon.h b/src/lib/app/qzcommon.h
index 92a453c..2c7e061 100644
--- a/src/lib/app/qzcommon.h
+++ b/src/lib/app/qzcommon.h
@@ -117,6 +117,8 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(Qz::NewTabPositionFlags)
 #define DEFAULT_THEME_NAME QSL("windows")
 #elif defined(Q_OS_MACOS)
 #define DEFAULT_THEME_NAME QSL("mac")
+#elif defined(Q_OS_HAIKU)
+#define DEFAULT_THEME_NAME QSL("haiku")
 #elif defined(Q_OS_UNIX)
 #define DEFAULT_THEME_NAME QSL("linux")
 #else
-- 
2.30.2

