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:
parent
8246071c1c
commit
3686b1cf6f
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue