python: Send only one event message for wmfs.uicb function

This commit is contained in:
Martin Duquesnoy 2009-01-04 23:09:40 +01:00
parent f99a082a79
commit 7b1c730c80
3 changed files with 5 additions and 7 deletions

View File

@ -124,7 +124,6 @@ wmfs_uicb(PyObject *self, PyObject *args)
8, PropModeReplace, (unsigned char*)cmd, strlen(cmd));
send_client_message("_WMFS_FUNCTION", data);
send_client_message("_WMFS_CMD", data);
Py_INCREF(Py_None);

View File

@ -133,7 +133,6 @@ clientmessageevent(XClientMessageEvent *ev)
client_focus(c);
}
/* Manage _NET_WM_STATE */
if(mess_t == net_wm_state)
if((c = client_gb_win(ev->window)))
@ -169,8 +168,9 @@ clientmessageevent(XClientMessageEvent *ev)
}
}
if(mess_t == wmfs_function && ev->data.l[4] == True)
/* Manage _WMFS_FUNCTION && _WMFS_CMD */
if((mess_t == wmfs_function && ev->data.l[4] == True)
|| (mess_t == wmfs_cmd && ev->data.l[4] == True))
{
uchar *ret_func = NULL;
uchar *ret_cmd = NULL;

View File

@ -79,9 +79,8 @@ ewmh_init_hints(void)
net_atom[wmfs_current_screen] = ATOM("_WMFS_CURRENT_SCREEN");
net_atom[wmfs_current_layout] = ATOM("_WMFS_CURRENT_LAYOUT");
net_atom[wmfs_tag_names] = ATOM("_WMFS_TAG_NAMES");
net_atom[wmfs_function] = ATOM("_WMFS_FUNCTION");
net_atom[wmfs_cmd] = ATOM("_WMFS_CMD");
net_atom[wmfs_function] = ATOM("_WMFS_FUNCTION");
net_atom[wmfs_cmd] = ATOM("_WMFS_CMD");
XChangeProperty(dpy, ROOT, net_atom[net_supported], XA_ATOM, 32,
PropModeReplace, (uchar*)net_atom, net_last);