]> Dogcows Code - chaz/openbox/blobdiff - openbox/place.c
Add a primaryMonitor config option, where the focus-cycle and keychain popups will...
[chaz/openbox] / openbox / place.c
index 45d7f07ff72bb56b6ac1b613e98e5a0f279ae282..d1d0481b3c0cad544d60f159c4e106bd944857cf 100644 (file)
@@ -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. */
This page took 0.020531 seconds and 4 git commands to generate.