]> git.decadent.org.uk Git - ion3.git/blob - ioncore/netwm.h
312f96b3880a9cb7789b09d3472c47305c504d76
[ion3.git] / ioncore / netwm.h
1 /*
2  * ion/ioncore/netwm.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2007. 
5  *
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.
10  */
11
12 #ifndef ION_IONCORE_NETWM_H
13 #define ION_IONCORE_NETWM_H
14
15 #include "common.h"
16 #include "rootwin.h"
17 #include "screen.h"
18
19 #define _NET_WM_STATE_REMOVE        0    /* remove/unset property */
20 #define _NET_WM_STATE_ADD           1    /* add/set property */
21 #define _NET_WM_STATE_TOGGLE        2    /* toggle property  */
22
23 extern void netwm_init();
24 extern void netwm_init_rootwin(WRootWin *rw);
25
26 extern WScreen *netwm_check_initial_fullscreen(WClientWin *cwin);
27 extern void netwm_update_state(WClientWin *cwin);
28 extern void netwm_delete_state(WClientWin *cwin);
29 extern void netwm_set_active(WRegion *reg);
30 extern char **netwm_get_name(WClientWin *cwin);
31
32 extern void netwm_handle_client_message(const XClientMessageEvent *ev);
33 extern bool netwm_handle_property(WClientWin *cwin, const XPropertyEvent *ev);
34
35 #endif /* ION_IONCORE_NETWM_H */