/* find the monitor the menu is on */
for (i = 0; i < screen_num_monitors; ++i) {
- Rect a = screen_physical_area_monitor(i);
+ Rect *a = screen_physical_area_monitor(i);
gboolean contains = RECT_CONTAINS(*a, x, y);
g_free(a);
if (contains) {
screen_pointer_pos(&px, &py);
- for (i = 0; i < screen_num_monitors; i++)
+ for (i = 0; i < screen_num_monitors; i++) {
Rect *monitor = screen_physical_area_monitor(i);
gboolean contain = RECT_CONTAINS(*monitor, px, py);
g_free(monitor);
- if (contain)
+ if (contain) {
add_choice(choice, i);
ob_debug("placement adding choice %d for mouse pointer\n", i);
break;
}
+ }
/* add any leftover choices */
for (i = 0; i < screen_num_monitors; ++i)