diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt
index f7d44ec54..a40f096d2 100644
--- a/common/CMakeLists.txt
+++ b/common/CMakeLists.txt
@@ -2,6 +2,7 @@ add_library(sway-common
 	ipc-client.c
 	list.c
 	log.c
+	util.c
 	readline.c
 	stringop.c
 	)
diff --git a/sway/util.c b/common/util.c
similarity index 100%
rename from sway/util.c
rename to common/util.c
diff --git a/sway/CMakeLists.txt b/sway/CMakeLists.txt
index aa553492d..894163b86 100644
--- a/sway/CMakeLists.txt
+++ b/sway/CMakeLists.txt
@@ -21,7 +21,6 @@ add_executable(sway
 	main.c
 	output.c
 	resize.c
-	util.c
 	workspace.c
 )