diff --color -Naur a/src/utils.cpp b/src/utils.cpp
--- a/src/utils.cpp	2022-02-08 14:08:43.636030491 +0800
+++ b/src/utils.cpp	2022-02-08 14:09:31.072168635 +0800
@@ -27,6 +27,7 @@
 #include <QDebug>
 #include <QFontMetrics>
 #include <QPainter>
+#include <QPainterPath>
 #include <QDBusInterface>
 #include <QtX11Extras/QX11Info>
 #include <X11/extensions/shape.h>
diff --color -Naur a/src/widgets/shapeswidget.cpp b/src/widgets/shapeswidget.cpp
--- a/src/widgets/shapeswidget.cpp	2022-02-08 14:08:43.644030514 +0800
+++ b/src/widgets/shapeswidget.cpp	2022-02-08 14:10:40.828372491 +0800
@@ -20,6 +20,7 @@
 #include "shapeswidget.h"
 #include <QApplication>
 #include <QPainter>
+#include <QPainterPath>
 #include <QDebug>
 
 #include "../utils/calculaterect.h"
diff --color -Naur a/src/widgets/tooltips.cpp b/src/widgets/tooltips.cpp
--- a/src/widgets/tooltips.cpp	2022-02-08 14:08:43.644030514 +0800
+++ b/src/widgets/tooltips.cpp	2022-02-08 14:10:07.160273998 +0800
@@ -33,6 +33,7 @@
 #include <QHBoxLayout>
 #include <QLabel>
 #include <QPainter>
+#include <QPainterPath>
 #include <QGraphicsDropShadowEffect>
 #include <QPropertyAnimation>
 #include <QGraphicsOpacityEffect>
