4 * Copyright (c) Tuomo Valkonen 1999-2007.
6 * Ion is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation; either version 2.1 of the License, or
9 * (at your option) any later version.
12 #ifndef ION_IONCORE_GLOBAL_H
13 #define ION_IONCORE_GLOBAL_H
17 #include <X11/Xutil.h>
18 #include <X11/Xresource.h>
20 #include <libtu/stringstore.h>
25 #include "clientwin.h"
29 IONCORE_INPUTMODE_NORMAL,
30 IONCORE_INPUTMODE_GRAB,
31 IONCORE_INPUTMODE_WAITRELEASE
36 IONCORE_OPMODE_NORMAL,
41 IONCORE_FOCUSNEXT_OTHER,
42 IONCORE_FOCUSNEXT_POINTERHACK,
43 IONCORE_FOCUSNEXT_ENTERWINDOW,
44 IONCORE_FOCUSNEXT_FALLBACK
61 Atom atom_wm_change_state;
62 Atom atom_wm_protocols;
64 Atom atom_wm_take_focus;
65 Atom atom_wm_colormaps;
66 Atom atom_wm_window_role;
75 int focus_next_source;
77 /* We could have a display WRegion but the screen-link could impose
78 * some problems so these are handled as a special case.
80 WRegion *focus_current;
90 int frame_default_index;
91 bool framed_transients;
93 bool unsqueeze_enabled;
96 bool use_mb; /* use mb routines? */
97 bool enc_sb; /* 8-bit charset? If unset, use_mb must be set. */
98 bool enc_utf8; /* mb encoding is utf8? */
100 const char *sm_client_id;
122 extern WGlobal ioncore_g;
124 #endif /* ION_IONCORE_GLOBAL_H */