kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=8afc7eca2e6b1e83c927f87b4e756fb4812a44f4

commit 8afc7eca2e6b1e83c927f87b4e756fb4812a44f4
Author: Kim Woelders <k...@woelders.dk>
Date:   Sat Dec 28 12:29:26 2013 +0100

    Remove some use of X11 Bool type/values.
---
 src/session.c | 6 +++---
 src/x.c       | 4 ++--
 src/xwin.h    | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/session.c b/src/session.c
index 92dd789..541dd68 100644
--- a/src/session.c
+++ b/src/session.c
@@ -41,7 +41,7 @@ static Window       new_init_win_ext = None;
 #endif
 
 /* True if we are saving state for a doExit("restart") */
-static int          restarting = False;
+static char         restarting = 0;
 
 #if USE_SM
 
@@ -491,7 +491,7 @@ doSMExit(int mode, const char *params)
    if (EDebug(EDBUG_TYPE_SESSION))
       Eprintf("doSMExit: mode=%d prm=%p\n", mode, params);
 
-   restarting = True;
+   restarting = 1;
 
    SessionSave(1);
 
@@ -563,7 +563,7 @@ doSMExit(int mode, const char *params)
        break;
      }
 
-   restarting = False;
+   restarting = 0;
    SoundPlay(SOUND_EXIT);
    EExit(0);
 }
diff --git a/src/x.c b/src/x.c
index 2705017..d8aaa6b 100644
--- a/src/x.c
+++ b/src/x.c
@@ -1178,7 +1178,7 @@ EWarpPointer(Win win, int x, int y)
    EXWarpPointer(win ? win->xwin : None, x, y);
 }
 
-Bool
+int
 EXQueryPointer(Window xwin, int *px, int *py, Window * pchild,
               unsigned int *pmask)
 {
@@ -1202,7 +1202,7 @@ EXQueryPointer(Window xwin, int *px, int *py, Window * 
pchild,
                        pmask);
 }
 
-Bool
+int
 EQueryPointer(Win win, int *px, int *py, Window * pchild, unsigned int *pmask)
 {
    Window              xwin;
diff --git a/src/xwin.h b/src/xwin.h
index 03a2e43..1464b4e 100644
--- a/src/xwin.h
+++ b/src/xwin.h
@@ -223,7 +223,7 @@ Pixmap              EWindowGetShapePixmap(Win win);
 Pixmap              EWindowGetShapePixmapInverted(Win win);
 
 void                EWarpPointer(Win win, int x, int y);
-Bool                EQueryPointer(Win win, int *px, int *py,
+int                 EQueryPointer(Win win, int *px, int *py,
                                  Window * pchild, unsigned int *pmask);
 
 unsigned int        EAllocColor(Colormap cmap, unsigned int argb);
@@ -264,7 +264,7 @@ void                EXCopyAreaTiled(Drawable src, Pixmap 
mask, Drawable dst,
                                    int dx, int dy);
 
 void                EXWarpPointer(Window xwin, int x, int y);
-Bool                EXQueryPointer(Window xwin, int *px, int *py,
+int                 EXQueryPointer(Window xwin, int *px, int *py,
                                   Window * pchild, unsigned int *pmask);
 
 Pixmap              EXCreatePixmapCopy(Pixmap src, unsigned int w,

-- 


Reply via email to