コード例 #1
0
ファイル: ewmh.c プロジェクト: neynt/bspwm
void ewmh_update_wm_desktops(void)
{
    for (monitor_t *m = mon_head; m != NULL; m = m->next)
        for (desktop_t *d = m->desk_head; d != NULL; d = d->next) {
            uint32_t i = ewmh_get_desktop_index(d);
            for (node_t *n = first_extrema(d->root); n != NULL; n = next_leaf(n, d->root))
                xcb_ewmh_set_wm_desktop(ewmh, n->client->window, i);
        }
}
コード例 #2
0
ファイル: ewmh.c プロジェクト: CTJohnson/bspwm
void ewmh_set_wm_desktop(node_t *n, desktop_t *d)
{
	uint32_t i = ewmh_get_desktop_index(d);
	for (node_t *f = first_extrema(n); f != NULL; f = next_leaf(f, n)) {
		if (f->client == NULL) {
			continue;
		}
		xcb_ewmh_set_wm_desktop(ewmh, f->id, i);
	}
}
コード例 #3
0
ファイル: ewmh.c プロジェクト: neynt/bspwm
void ewmh_set_wm_desktop(node_t *n, desktop_t *d)
{
    uint32_t i = ewmh_get_desktop_index(d);
    xcb_ewmh_set_wm_desktop(ewmh, n->client->window, i);
}