1
0
Fork 0

test-runner: Support parsing monitor-relative window positions

Can do: assert_position w/1 MONITOR_WIDTH/2 MONITOR_HEIGHT*0.75

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3701>
This commit is contained in:
Marco Trevisan (Treviño) 2023-05-16 14:47:19 +02:00 committed by Marge Bot
parent 8246071c1c
commit 3686b1cf6f

View file

@ -1323,8 +1323,8 @@ test_case_do (TestCase *test,
MtkRectangle frame_rect;
meta_window_get_frame_rect (window, &frame_rect);
int x = atoi (argv[2]);
int y = atoi (argv[3]);
int x = parse_window_size (window, argv[2]);
int y = parse_window_size (window, argv[3]);
if (frame_rect.x != x || frame_rect.y != y)
{
g_set_error (error,