/*
 * src/events.h - event handling
 *
 * Copyright (C) 1999, 2000 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
 *
 * This is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 * 
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this package; see the file COPYING.  If not, write to
 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.  
 */

#ifndef __EVENTS_H__
#define __EVENTS_H__

#if HAVE_CONFIG_H
# include <config.h>
#endif 

#include <X11/Xlib.h>

#include "client.h"

extern int ignore_enter_event;

/*
 * Execute the given command COMMAND in a shell.  The command is automatically
 * put into the background.
 */
void execute (char * command);

/*
 * Restart the window manager.  This routine only restarts when the
 * executable to be started can be found.
 */
void restart (void);

/*
 * Redraw old and new focus windows, install new colormap, put the keyboard
 * focus onto the new window and grab hotkeys to the new window.
 */
void transfer_focus (client_t new, client_t old);

/*
 * Make sure that any client on the current working set is focused.
 */
void focus_any_client (void);

/*
 * Query the X server for events and process them in a loop.
 */
void process_events (void);

#endif /* not __EVENTS_H__ */

