1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

New header file event.h

The file event.h includes the function prototypes for event.c.

The prototypes included were moved from funcs.h.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
This commit is contained in:
Rodolfo García Peñas (kix)
2013-05-15 13:07:52 +02:00
committed by Carlos R. Mafra
parent 583235bb36
commit 157209a035
13 changed files with 42 additions and 9 deletions

View File

@@ -35,6 +35,7 @@ wmaker_SOURCES = \
dockedapp.h \ dockedapp.h \
dock.h \ dock.h \
event.c \ event.c \
event.h \
extend_pixmaps.h \ extend_pixmaps.h \
framewin.c \ framewin.c \
framewin.h \ framewin.h \

View File

@@ -48,6 +48,7 @@
#include "usermenu.h" #include "usermenu.h"
#include "placement.h" #include "placement.h"
#include "misc.h" #include "misc.h"
#include "event.h"
/****** Global Variables ******/ /****** Global Variables ******/

View File

@@ -49,6 +49,7 @@
#include "client.h" #include "client.h"
#include "placement.h" #include "placement.h"
#include "misc.h" #include "misc.h"
#include "event.h"
#ifdef XDND #ifdef XDND
#include "xdnd.h" #include "xdnd.h"
#endif #endif

View File

@@ -62,6 +62,7 @@
#include "workspace.h" #include "workspace.h"
#include "properties.h" #include "properties.h"
#include "misc.h" #include "misc.h"
#include "event.h"
#define MAX_SHORTCUT_LENGTH 32 #define MAX_SHORTCUT_LENGTH 32

View File

@@ -56,6 +56,7 @@
#include "xinerama.h" #include "xinerama.h"
#include "placement.h" #include "placement.h"
#include "misc.h" #include "misc.h"
#include "event.h"
/**** Local variables ****/ /**** Local variables ****/
#define CLIP_REWIND 1 #define CLIP_REWIND 1

View File

@@ -72,6 +72,7 @@
#include "screen.h" #include "screen.h"
#include "shutdown.h" #include "shutdown.h"
#include "misc.h" #include "misc.h"
#include "event.h"
/******** Global Variables **********/ /******** Global Variables **********/
extern XContext wWinContext; extern XContext wWinContext;

31
src/event.h Normal file
View File

@@ -0,0 +1,31 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997-2003 Alfredo K. Kojima
* Copyright (c) 2013 Window Maker Team
*
* This program 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 of the License, or
* (at your option) any later version.
*
* This program 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 program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef WMEVENT_H
#define WMEVENT_H
void EventLoop(void);
void DispatchEvent(XEvent *event);
void ProcessPendingEvents(void);
WMagicNumber wAddDeathHandler(pid_t pid, WDeathHandler *callback, void *cdata);
Bool IsDoubleClick(WScreen *scr, XEvent *event);
#endif /* WMEVENT_H */

View File

@@ -40,6 +40,7 @@
#include "framewin.h" #include "framewin.h"
#include "stacking.h" #include "stacking.h"
#include "misc.h" #include "misc.h"
#include "event.h"
#define DBLCLICK_TIME wPreferences.dblclick_time #define DBLCLICK_TIME wPreferences.dblclick_time

View File

@@ -32,15 +32,6 @@ typedef void (WCallBack)(void *cdata);
typedef void (WDeathHandler)(pid_t pid, unsigned int status, void *cdata); typedef void (WDeathHandler)(pid_t pid, unsigned int status, void *cdata);
/* ---[ event.c ]--------------------------------------------------------- */
void EventLoop(void);
void DispatchEvent(XEvent *event);
void ProcessPendingEvents(void);
WMagicNumber wAddDeathHandler(pid_t pid, WDeathHandler *callback, void *cdata);
Bool IsDoubleClick(WScreen *scr, XEvent *event);
/* ---[ main.c ]---------------------------------------------------------- */ /* ---[ main.c ]---------------------------------------------------------- */
int getWVisualID(int screen); int getWVisualID(int screen);

View File

@@ -45,6 +45,7 @@
#include "wmspec.h" #include "wmspec.h"
#include "misc.h" #include "misc.h"
#include "startup.h" #include "startup.h"
#include "event.h"
/**** Global varianebles ****/ /**** Global varianebles ****/
extern WPreferences wPreferences; extern WPreferences wPreferences;

View File

@@ -46,6 +46,7 @@
#include "WindowMaker.h" #include "WindowMaker.h"
#include "window.h" #include "window.h"
#include "funcs.h" #include "funcs.h"
#include "event.h"
#include "startup.h" #include "startup.h"
#include "menu.h" #include "menu.h"
#include "keybind.h" #include "keybind.h"

View File

@@ -66,6 +66,7 @@
#include "properties.h" #include "properties.h"
#include "dialog.h" #include "dialog.h"
#include "wmspec.h" #include "wmspec.h"
#include "event.h"
#ifdef XDND #ifdef XDND
#include "xdnd.h" #include "xdnd.h"
#endif #endif

View File

@@ -48,6 +48,7 @@
#include "appicon.h" #include "appicon.h"
#include "wmspec.h" #include "wmspec.h"
#include "xinerama.h" #include "xinerama.h"
#include "event.h"
#define MC_NEW 0 #define MC_NEW 0
#define MC_DESTROY_LAST 1 #define MC_DESTROY_LAST 1