#include "screen.h"
#include "frame.h"
#include "focus.h"
+#include "config.h"
static Rect* pick_head(ObClient *c)
{
return NULL;
}
+#if 0
static gboolean place_random(ObClient *client, gint *x, gint *y)
{
int l, r, t, b;
return TRUE;
}
+#endif
static GSList* area_add(GSList *list, Rect *a)
{
return ret;
}
+static gboolean place_under_mouse(ObClient *client, gint *x, gint *y)
+{
+ int px, py;
+
+ screen_pointer_pos(&px, &py);
+
+ *x = px - client->area.width / 2 - client->frame->size.left;
+ *y = py - client->area.height / 2 - client->frame->size.top;
+
+ return TRUE;
+}
+
static gboolean place_transient(ObClient *client, gint *x, gint *y)
{
if (client->transient_for) {
return;
if (place_smart(client, x, y))
return;
- if (place_random(client, x, y))
+ if (place_under_mouse(client, x, y))
return;
g_assert_not_reached(); /* the last one better succeed */
}