void xapi_ontop(void *d) { int action=_NET_WM_STATE_TOGGLE; if (!strcmp(d,"on") || atoi(d)==1) action=_NET_WM_STATE_ADD; else if (!strcmp(d,"toggle")) action=_NET_WM_STATE_TOGGLE; else if (!strcmp(d,"off") || atoi(d)==0) action=_NET_WM_STATE_REMOVE; remote_printf(100,"ok."); Xontop(action); }
static void ui_ontop() { Xontop(2); }