void focusfirst(void) { int curid = workspace_get_active(); WnckWindow *first = workspace_get_first_window(curid); if (NULL != first) { window_activate(first); } }
void focusprev(void) { int curid = workspace_get_active(); WnckWindow *cur = window_get_active(); WnckWindow *prev = workspace_get_prev(curid, cur); if (NULL != prev) { window_activate(prev); } }
void focusnext(void) { int curid = workspace_get_active(); WnckWindow *cur = window_get_active(); WnckWindow *next = workspace_get_next(curid, cur); if (NULL != next) { window_activate(next); } }
void etator(void) { int curid = workspace_get_active(); if (workspace_rotate_windows_left(curid)) { tile(curid); WnckWindow *first = workspace_get_first_window(curid); if (NULL != first) { window_activate(first); } } }
void window_init(int spaceid, WnckWindow *window) { window_decorate(window, FALSE); if (configuration.tiled_skip_pager) { wnck_window_set_skip_tasklist(window, TRUE); wnck_window_set_skip_pager(window, TRUE); } window_activate(window); g_signal_connect(window, "workspace_changed", (GCallback)workspace_changed_cb, NULL); }
/* * A spatial file manager. Treat directories as independent resources with * fixed positions. Useful for navigating your filesystem with a predictable * GUI. */ int main(int argc, char *argv[]) { struct geometry *geometry; GtkWidget *window; WnckWindow *w; struct state *d; char *dir, ch; if ((d = state_new(argv[0])) == NULL) err(1, "could not build the callback data"); gtk_init(&argc, &argv); while ((ch = getopt(argc, argv, "")) != -1) switch (ch) { default: usage(); /* NOTREACHED */ } argc -= optind; argv += optind; dir = getdir(argc, argv); if (((w = window_by_title(dir)) != NULL) && window_activate(w) != -1) goto done; if (state_add_dir(d, dir) < 0) err(1, "state_add_dir"); if ((geometry = malloc(sizeof(struct geometry))) == NULL) err(1, "malloc"); getgeometry(dir, geometry); window = prepare_window(dir, geometry, d); free(geometry); gtk_widget_show(window); gtk_main(); done: state_free(d); return 0; }
void gui_activate_playlist(void) { window_activate(playlist_window); }
void gui_activate_filelist(void) { window_activate(filelist_window); }