jcs ratpoison hax
at jcs 58 lines 2.2 kB view raw
1/* functions for managing the window list 2 * Copyright (C) 2000, 2001, 2002, 2003, 2004 Shawn Betts <sabetts@vcn.bc.ca> 3 * 4 * This file is part of ratpoison. 5 * 6 * ratpoison is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2, or (at your option) 9 * any later version. 10 * 11 * ratpoison is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this software; see the file COPYING. If not, write to 18 * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, 19 * Boston, MA 02111-1307 USA 20 */ 21 22#ifndef _RATPOISON_LIST_H 23#define _RATPOISON_LIST_H 1 24 25#include "sbuf.h" 26 27void free_window (rp_window *w); 28rp_window *add_to_window_list (rp_screen *s, Window w); 29void last_window (void); 30rp_window *find_window_in_list (Window w, struct list_head *list); 31rp_window *find_window (Window w); 32void maximize_current_window (void); 33void give_window_focus (rp_window *win, rp_window *last_win); 34void set_active_window (rp_window *win); 35void set_active_window_force (rp_window *win); 36void goto_window (rp_window *win); 37void update_window_gravity (rp_window *win); 38char *window_name (rp_window *win); 39 40/* int goto_window_name (char *name); */ 41rp_window *find_window_other (rp_screen *screen); 42rp_window *find_window_by_number (int n); 43rp_window *find_window_name (char *name, int exact_match); 44rp_window *find_window_number (int n); 45 46void insert_into_list (rp_window *win, struct list_head *list); 47 48void get_window_list (char *fmt, char *delim, struct sbuf *buffer, 49 int *mark_start, int *mark_end); 50void init_window_stuff (void); 51void free_window_stuff (void); 52 53rp_frame *win_get_frame (rp_window *win); 54 55struct rp_child_info *get_child_info (Window w); 56void change_windows_screen (rp_screen *s, rp_screen *new_screen); 57 58#endif /* ! _RATPOISON_LIST_H */