#include "dispatch.h"
#include "focus.h"
#include "parse.h"
+#include "stacking.h"
#include <X11/Xlib.h>
#include <glib.h>
-100, -100, 1, 1, 0,
CopyFromParent, InputOutput, CopyFromParent,
CWOverrideRedirect, &attrib);
- XMapRaised(ob_display, focus_backup);
+ XMapWindow(ob_display, focus_backup);
+ stacking_raise_internal(focus_backup);
/* start with nothing focused */
focus_set_client(NULL);
static gboolean focus_under_pointer()
{
- Window w;
- int i, x, y;
- guint u;
+ int x, y;
GList *it;
- if (XQueryPointer(ob_display, ob_root, &w, &w, &x, &y, &i, &i, &u)) {
+ if (ob_pointer_pos(&x, &y)) {
for (it = stacking_list; it != NULL; it = it->next) {
Client *c = it->data;
if (c->desktop == screen_desktop &&