summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9e4db4e)
When no monitor is at (0,0), the screen rect containing all monitors
is not at the origin, but screen_apply_gravity_point assumes the passed
x/y are relative to the passed area, so adjust them.
position = o->position;
} else {
position = o->position;
} else {
monitor = screen_num_monitors;
monitor = screen_num_monitors;
- position.x.pos = data->x;
- position.y.pos = data->y;
+ allmon = screen_physical_area_monitor(monitor);
+ position.x.pos = data->x - allmon->x;
+ position.y.pos = data->y - allmon->y;
}
/* you cannot call ShowMenu from inside a menu */
}
/* you cannot call ShowMenu from inside a menu */