diff --git a/src/module/module_qt_window.cc b/src/module/module_qt_window.cc
index ae5d78901156249c8ad0e9b9d864d9512222ca60..22cf54572a973b47444029180d660e32f954f0e8 100644
--- a/src/module/module_qt_window.cc
+++ b/src/module/module_qt_window.cc
@@ -4,7 +4,6 @@
 #include <lektor/lktmodule.h>
 #include <sched.h>
 #include "mpv.h"
-#include "thread.h"
 
 #include "qt_window/mpvwidget_interface.hh"
 
@@ -197,7 +196,6 @@ module_qt_window_new(struct module_qt_window_s **win, struct queue *queue, lkt_d
 
         (*win)->queue = queue;
         (*win)->db    = db;
-        (*win)->reg   = qt_window_reg;
 
         pthread_t thread;
         RETURN_IF(pthread_create(&thread, nullptr, ___create_mpv_widget, *win), "Failed to launch the Qt thread", false);
diff --git a/src/module/module_qt_window.hh b/src/module/module_qt_window.hh
index fa0e28695f0f135175747c66a9863ffdf71ee7e9..9ac0880714d3738700224fa8228a2f413992545a 100644
--- a/src/module/module_qt_window.hh
+++ b/src/module/module_qt_window.hh
@@ -10,7 +10,6 @@ struct module_qt_window_s {
     MainWindow *main_window;
     MpvWidget *mpv_widget;
 
-    struct poller_thread self;
     struct module_reg *reg;
 
     /* Things from the server */