diff options
Diffstat (limited to 'src/Ewmh.hh')
-rw-r--r-- | src/Ewmh.hh | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/Ewmh.hh b/src/Ewmh.hh index b3f8154..1562248 100644 --- a/src/Ewmh.hh +++ b/src/Ewmh.hh | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: Ewmh.hh,v 1.3 2002/10/16 19:02:25 fluxgen Exp $ | 22 | // $Id: Ewmh.hh,v 1.4 2002/12/01 13:41:56 rathnor Exp $ |
23 | 23 | ||
24 | #include "AtomHandler.hh" | 24 | #include "AtomHandler.hh" |
25 | 25 | ||
@@ -29,48 +29,48 @@ | |||
29 | class Ewmh:public AtomHandler { | 29 | class Ewmh:public AtomHandler { |
30 | public: | 30 | public: |
31 | 31 | ||
32 | Ewmh(); | 32 | Ewmh(); |
33 | ~Ewmh(); | 33 | ~Ewmh(); |
34 | void initForScreen(const BScreen &screen); | 34 | void initForScreen(const BScreen &screen); |
35 | void setupWindow(FluxboxWindow &win); | 35 | void setupWindow(FluxboxWindow &win); |
36 | 36 | ||
37 | void updateClientList(const BScreen &screen); | 37 | void updateClientList(const BScreen &screen); |
38 | void updateWorkspaceNames(const BScreen &screen); | 38 | void updateWorkspaceNames(const BScreen &screen); |
39 | void updateCurrentWorkspace(const BScreen &screen); | 39 | void updateCurrentWorkspace(const BScreen &screen); |
40 | void updateWorkspaceCount(const BScreen &screen); | 40 | void updateWorkspaceCount(const BScreen &screen); |
41 | 41 | ||
42 | void updateState(FluxboxWindow &win); | 42 | void updateState(FluxboxWindow &win); |
43 | void updateHints(FluxboxWindow &win); | 43 | void updateHints(FluxboxWindow &win); |
44 | void updateWorkspace(FluxboxWindow &win); | 44 | void updateWorkspace(FluxboxWindow &win); |
45 | 45 | ||
46 | 46 | ||
47 | bool checkClientMessage(const XClientMessageEvent &ce, | 47 | bool checkClientMessage(const XClientMessageEvent &ce, |
48 | BScreen * const screen, FluxboxWindow * const win); | 48 | BScreen * const screen, FluxboxWindow * const win); |
49 | private: | 49 | private: |
50 | 50 | ||
51 | enum { STATE_REMOVE = 0, STATE_ADD = 1, STATE_TOGGLE = 2}; | 51 | enum { STATE_REMOVE = 0, STATE_ADD = 1, STATE_TOGGLE = 2}; |
52 | 52 | ||
53 | void setState(FluxboxWindow &win, Atom state, bool value) const; | 53 | void setState(FluxboxWindow &win, Atom state, bool value) const; |
54 | void toggleState(FluxboxWindow &win, Atom state) const; | 54 | void toggleState(FluxboxWindow &win, Atom state) const; |
55 | void createAtoms(); | 55 | void createAtoms(); |
56 | 56 | ||
57 | // root window properties | 57 | // root window properties |
58 | Atom m_net_supported, m_net_client_list, m_net_client_list_stacking, | 58 | Atom m_net_supported, m_net_client_list, m_net_client_list_stacking, |
59 | m_net_number_of_desktops, m_net_desktop_geometry, m_net_desktop_viewport, | 59 | m_net_number_of_desktops, m_net_desktop_geometry, m_net_desktop_viewport, |
60 | m_net_current_desktop, m_net_desktop_names, m_net_active_window, m_net_workarea, | 60 | m_net_current_desktop, m_net_desktop_names, m_net_active_window, m_net_workarea, |
61 | m_net_supporting_wm_check, m_net_virtual_roots, m_net_moveresize_window; | 61 | m_net_supporting_wm_check, m_net_virtual_roots, m_net_moveresize_window; |
62 | 62 | ||
63 | // root window messages | 63 | // root window messages |
64 | Atom m_net_close_window, m_net_wm_moveresize; | 64 | Atom m_net_close_window, m_net_wm_moveresize; |
65 | 65 | ||
66 | // application window properties | 66 | // application window properties |
67 | Atom m_net_properties, m_net_wm_name, m_net_wm_desktop, m_net_wm_window_type, | 67 | Atom m_net_properties, m_net_wm_name, m_net_wm_desktop, m_net_wm_window_type, |
68 | m_net_wm_state, m_net_wm_state_sticky, m_net_wm_state_shaded, | 68 | m_net_wm_state, m_net_wm_state_sticky, m_net_wm_state_shaded, |
69 | m_net_wm_strut, m_net_wm_icon_geometry, m_net_wm_icon, m_net_wm_pid, | 69 | m_net_wm_strut, m_net_wm_icon_geometry, m_net_wm_icon, m_net_wm_pid, |
70 | m_net_wm_handled_icons; | 70 | m_net_wm_handled_icons; |
71 | 71 | ||
72 | // application protocols | 72 | // application protocols |
73 | Atom m_net_wm_ping; | 73 | Atom m_net_wm_ping; |
74 | 74 | ||
75 | std::vector<Window> m_windows; | 75 | std::vector<Window> m_windows; |
76 | }; | 76 | }; |