Пример #1
0
void focusfirst(void)
{
	int curid = workspace_get_active();
	WnckWindow *first = workspace_get_first_window(curid);
	if (NULL != first) {
		window_activate(first);
	}
}
Пример #2
0
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);
	}
}
Пример #3
0
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);
	}
}
Пример #4
0
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);
		}
	}
}
Пример #5
0
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);
}
Пример #6
0
/*
 * 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;
}
Пример #7
0
void gui_activate_playlist(void) {
    window_activate(playlist_window);
}
Пример #8
0
void gui_activate_filelist(void) {
	window_activate(filelist_window);
}