コード例 #1
0
ファイル: main.C プロジェクト: nneonneo/rxvt-js
int
rxvt_xerror_handler (Display *display, XErrorEvent *event)
{
  if (GET_R->allowedxerror == -1)
    GET_R->allowedxerror = event->error_code;
  else
    {
      // GET_R is most likely not the terminal which caused the error,
      // so just output the error and continue
#if ENABLE_MINIMAL
      old_xerror_handler (display, event);
#else
      print_x_error (display, event);
#endif
    }

  return 0;
}
コード例 #2
0
ファイル: nwm.c プロジェクト: brandoninvergo/nwm
int handle_error(void *data, xcb_connection_t *c, xcb_generic_error_t *error)
{
    print_x_error(error);
    return 0;
}
コード例 #3
0
ファイル: nwm.c プロジェクト: brandoninvergo/nwm
int handle_startup_error(void *data, xcb_connection_t *c, xcb_generic_error_t *error)
{
    fprintf(stderr, "another window manager is already running\n");
    print_x_error(error);
    exit(1);
}