summaryrefslogtreecommitdiff
path: root/openbox/place.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2009-12-09 16:41:52 -0500
committerDana Jansens <danakj@orodu.net>2009-12-09 16:41:52 -0500
commitaa329719b99792a624449b2448abee9e2c67ce94 (patch)
tree630e343b5b475940d13952e6cfbec5c16ab62ec0 /openbox/place.c
parent10d99cc5e9efe40527c6ace3740b67890ea37729 (diff)
Add a primaryMonitor config option, where the focus-cycle and keychain popups will appear
Diffstat (limited to 'openbox/place.c')
-rw-r--r--openbox/place.c15
1 files changed, 1 insertions, 14 deletions
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. */