diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
index bf4e52e4..6b58d1c8 100644
--- a/client/CMakeLists.txt
+++ b/client/CMakeLists.txt
@@ -144,6 +144,7 @@ target_link_libraries(wivrn
target_compile_definitions(wivrn PRIVATE -DXR_USE_GRAPHICS_API_VULKAN)
target_compile_definitions(wivrn PRIVATE -DVMA_STATS_STRING_ENABLED=0)
target_compile_definitions(wivrn PRIVATE -DGLM_ENABLE_EXPERIMENTAL)
+target_compile_definitions(wivrn PRIVATE IMGUI_DEFINE_MATH_OPERATORS)
target_include_directories(wivrn PRIVATE .)
diff --git a/client/render/imgui_impl.cpp b/client/render/imgui_impl.cpp
index 3de08a1b..f537e6f6 100644
--- a/client/render/imgui_impl.cpp
+++ b/client/render/imgui_impl.cpp
@@ -16,7 +16,6 @@
* along with this program. If not, see .
*/
-#define IMGUI_DEFINE_MATH_OPERATORS
#include "imgui_impl.h"
#include "implot.h"
diff --git a/client/render/ui_widgets.cpp b/client/render/ui_widgets.cpp
index 41b93462..cc7d1c7e 100644
--- a/client/render/ui_widgets.cpp
+++ b/client/render/ui_widgets.cpp
@@ -17,8 +17,6 @@
* along with this program. If not, see .
*/
-#define IMGUI_DEFINE_MATH_OPERATORS
-
#include "ui_widgets.h"
#include "imgui.h"
diff --git a/client/scenes/app_launcher.cpp b/client/scenes/app_launcher.cpp
index 5e62a92f..27de399a 100644
--- a/client/scenes/app_launcher.cpp
+++ b/client/scenes/app_launcher.cpp
@@ -17,7 +17,6 @@
* along with this program. If not, see .
*/
-#define IMGUI_DEFINE_MATH_OPERATORS
#include "app_launcher.h"
#include "application.h"
diff --git a/client/scenes/gui_settings.cpp b/client/scenes/gui_settings.cpp
index 5bf3b63e..99ed048f 100644
--- a/client/scenes/gui_settings.cpp
+++ b/client/scenes/gui_settings.cpp
@@ -21,7 +21,6 @@
// ui:: widget for each, rebuilt every frame so dynamic options/descriptions just work
// same pages serve the lobby and the in-stream window, gated by ctx.in_game
-#define IMGUI_DEFINE_MATH_OPERATORS
#include "scenes/gui_common.h"
#include "gui_settings.h"
diff --git a/client/scenes/lobby_gui.cpp b/client/scenes/lobby_gui.cpp
index 8781b5a6..9d0ab5a3 100644
--- a/client/scenes/lobby_gui.cpp
+++ b/client/scenes/lobby_gui.cpp
@@ -17,8 +17,6 @@
* along with this program. If not, see .
*/
-#define IMGUI_DEFINE_MATH_OPERATORS
-
#include "application.h"
#include "configuration.h"
#include "constants.h"
diff --git a/client/scenes/lobby_gui_customize.cpp b/client/scenes/lobby_gui_customize.cpp
index 2eea3a86..dd60f5ec 100644
--- a/client/scenes/lobby_gui_customize.cpp
+++ b/client/scenes/lobby_gui_customize.cpp
@@ -17,8 +17,6 @@
* along with this program. If not, see .
*/
-#define IMGUI_DEFINE_MATH_OPERATORS
-
#include "lobby.h"
#include "application.h"
diff --git a/client/scenes/lobby_gui_theme.cpp b/client/scenes/lobby_gui_theme.cpp
index 6ddab650..9e6d17f8 100644
--- a/client/scenes/lobby_gui_theme.cpp
+++ b/client/scenes/lobby_gui_theme.cpp
@@ -17,8 +17,6 @@
* along with this program. If not, see .
*/
-#define IMGUI_DEFINE_MATH_OPERATORS
-
#include "lobby.h"
#include "application.h"
diff --git a/client/scenes/lobby_keyboard.cpp b/client/scenes/lobby_keyboard.cpp
index 59a6bc2b..d3b143e1 100644
--- a/client/scenes/lobby_keyboard.cpp
+++ b/client/scenes/lobby_keyboard.cpp
@@ -17,8 +17,6 @@
* along with this program. If not, see .
*/
-#define IMGUI_DEFINE_MATH_OPERATORS
-
#include "lobby_keyboard.h"
#include
diff --git a/client/scenes/stream_gui.cpp b/client/scenes/stream_gui.cpp
index dba88c42..a70fa7ea 100644
--- a/client/scenes/stream_gui.cpp
+++ b/client/scenes/stream_gui.cpp
@@ -17,8 +17,6 @@
* along with this program. If not, see .
*/
-#define IMGUI_DEFINE_MATH_OPERATORS
-
#include "stream.h"
#include "application.h"