diff options
Diffstat (limited to 'src/wm-tester')
-rw-r--r-- | src/wm-tester/Makefile.am | 4 | ||||
-rw-r--r-- | src/wm-tester/main.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/wm-tester/Makefile.am b/src/wm-tester/Makefile.am index 3d35c741..e719bdb6 100644 --- a/src/wm-tester/Makefile.am +++ b/src/wm-tester/Makefile.am @@ -1,5 +1,5 @@ -INCLUDES=@MARCO_CFLAGS@ +AM_CPPFLAGS=@MARCO_CFLAGS@ wm_tester_SOURCES= \ main.c @@ -22,4 +22,4 @@ wm_tester_LDADD= @MARCO_LIBS@ test_gravity_LDADD= @MARCO_LIBS@ test_resizing_LDADD= @MARCO_LIBS@ test_size_hints_LDADD= @MARCO_LIBS@ -focus_window_LDADD= @MARCO_LIBS@
\ No newline at end of file +focus_window_LDADD= @MARCO_LIBS@ 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 ()), |