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
@ -1323,8 +1323,8 @@ test_case_do (TestCase *test,
|
|||||||
|
|
||||||
MtkRectangle frame_rect;
|
MtkRectangle frame_rect;
|
||||||
meta_window_get_frame_rect (window, &frame_rect);
|
meta_window_get_frame_rect (window, &frame_rect);
|
||||||
int x = atoi (argv[2]);
|
int x = parse_window_size (window, argv[2]);
|
||||||
int y = atoi (argv[3]);
|
int y = parse_window_size (window, argv[3]);
|
||||||
if (frame_rect.x != x || frame_rect.y != y)
|
if (frame_rect.x != x || frame_rect.y != y)
|
||||||
{
|
{
|
||||||
g_set_error (error,
|
g_set_error (error,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user