summaryrefslogtreecommitdiff
path: root/src/wm-tester
diff options
context:
space:
mode:
Diffstat (limited to 'src/wm-tester')
-rw-r--r--src/wm-tester/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wm-tester/main.c b/src/wm-tester/main.c
index 50bb85fc..48a23a06 100644
--- a/src/wm-tester/main.c
+++ b/src/wm-tester/main.c
@@ -120,6 +120,10 @@ evil_timeout (gpointer data)
w = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ #if GTK_CHECK_VERSION(3, 0, 0)
+ #define gtk_widget_set_uposition gtk_window_move
+ #endif
+
gtk_widget_set_uposition (w,
g_random_int_range (0,
gdk_screen_width ()),