X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fplace.c;h=d1d0481b3c0cad544d60f159c4e106bd944857cf;hb=62e36ad0410ce888e7097e7bce5cbbf67b5b6290;hp=45d7f07ff72bb56b6ac1b613e98e5a0f279ae282;hpb=deb0aa720a4feda3b52c17e16ed7324c61dc331a;p=chaz%2Fopenbox diff --git a/openbox/place.c b/openbox/place.c index 45d7f07f..d1d0481b 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -43,20 +43,7 @@ static void add_choice(guint *choice, guint mychoice) static Rect *pick_pointer_head(ObClient *c) { - guint i; - gint px, py; - - if (screen_pointer_pos(&px, &py)) { - 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) - return screen_area(c->desktop, i, NULL); - } - g_assert_not_reached(); - } else - return NULL; + return screen_area(c->desktop, screen_monitor_pointer(), NULL); } /*! Pick a monitor to place a window on. */