From: Mikael Magnusson Date: Mon, 23 Jul 2007 23:52:48 +0000 (+0200) Subject: Add a _OB_FOCUS client message for obpanel to use. X-Git-Tag: mikabox-3.4.3~4 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=67b873a42859f5e3caa97cc0d95e3dd581c01689;p=mikachu%2Fopenbox.git Add a _OB_FOCUS client message for obpanel to use. --- diff --git a/openbox/event.c b/openbox/event.c index f0036590..8bc9fc20 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1305,6 +1305,8 @@ static void event_handle_client(ObClient *client, XEvent *e) client_activate(client, FALSE, TRUE, TRUE, (e->xclient.data.l[0] == 0 || e->xclient.data.l[0] == 2)); + } else if (msgtype == prop_atoms.ob_focus) { + client_focus(client); } else if (msgtype == prop_atoms.net_wm_moveresize) { ob_debug("net_wm_moveresize for 0x%lx direction %d\n", client->window, e->xclient.data.l[2]); diff --git a/openbox/prop.c b/openbox/prop.c index 46d688c8..fb0b916b 100644 --- a/openbox/prop.c +++ b/openbox/prop.c @@ -171,6 +171,7 @@ void prop_startup() */ CREATE(openbox_pid, "_OPENBOX_PID"); + CREATE(ob_focus, "_OB_FOCUS"); CREATE(ob_theme, "_OB_THEME"); CREATE(ob_wm_action_undecorate, "_OB_WM_ACTION_UNDECORATE"); CREATE(ob_wm_state_undecorated, "_OB_WM_STATE_UNDECORATED"); diff --git a/openbox/prop.h b/openbox/prop.h index 914c1f61..5fb0e161 100644 --- a/openbox/prop.h +++ b/openbox/prop.h @@ -190,6 +190,7 @@ typedef struct Atoms { /* Openbox specific atoms */ + Atom ob_focus; Atom ob_wm_action_undecorate; Atom ob_wm_state_undecorated; Atom openbox_pid; /* this is depreecated in favour of ob_control */