[AS_DYING] = "DYING",
};
-static int b_active = -1;
+static bool b_active = FALSE;
static bool first_launch = TRUE;
struct win_node {
if (__find_win((unsigned int)ev->win)) {
__delete_win((unsigned int)ev->win);
bvisibility = __check_visible();
- if (!bvisibility && b_active != 0) {
+ if (!bvisibility && b_active == TRUE) {
_DBG(" Go to Pasue state \n");
- b_active = 0;
+ b_active = FALSE;
__do_app(AE_PAUSE, data, NULL);
}
}
_DBG("bvisibility %d, b_active %d", bvisibility, b_active);
- if (bvisibility && b_active != 1) {
+ if (bvisibility && b_active == FALSE) {
_DBG(" Go to Resume state\n");
- b_active = 1;
+ b_active = TRUE;
__do_app(AE_RESUME, data, NULL);
- } else if (!bvisibility && b_active != 0) {
+ } else if (!bvisibility && b_active == TRUE) {
_DBG(" Go to Pasue state \n");
- b_active = 0;
+ b_active = FALSE;
__do_app(AE_PAUSE, data, NULL);
} else
_DBG(" No change state \n");
__update_win((unsigned int)ev->win, 0, false);
bvisibility = __check_visible();
_DBG("bvisibility %d, b_active %d", bvisibility, b_active);
- if (bvisibility && b_active != 1) {
+ if (bvisibility && b_active == FALSE) {
_DBG("Go to Resume state\n");
- b_active = 1;
+ b_active = TRUE;
__do_app(AE_RESUME, data, NULL);
}
}