commit 886f27e

Michael Forney  ·  2014-04-24 04:53:49 +0000 UTC
parent a76e501
xwm: Make event handling functions static
1 files changed,  +5, -5
+5, -5
 1@@ -101,7 +101,7 @@ static struct xwl_window * find_window(struct wl_list * list, xcb_window_t id)
 2 }
 3 
 4 /* X event handlers */
 5-void create_notify(xcb_create_notify_event_t * event)
 6+static void create_notify(xcb_create_notify_event_t * event)
 7 {
 8     struct xwl_window * xwl_window;
 9 
10@@ -113,7 +113,7 @@ void create_notify(xcb_create_notify_event_t * event)
11     wl_list_insert(&xwm.unpaired_windows, &xwl_window->link);
12 }
13 
14-void destroy_notify(xcb_destroy_notify_event_t * event)
15+static void destroy_notify(xcb_destroy_notify_event_t * event)
16 {
17     struct xwl_window * xwl_window;
18 
19@@ -129,16 +129,16 @@ void destroy_notify(xcb_destroy_notify_event_t * event)
20     free(xwl_window);
21 }
22 
23-void map_request(xcb_map_request_event_t * event)
24+static void map_request(xcb_map_request_event_t * event)
25 {
26     xcb_map_window(xwm.connection, event->window);
27 }
28 
29-void configure_request(xcb_configure_request_event_t * event)
30+static void configure_request(xcb_configure_request_event_t * event)
31 {
32 }
33 
34-void property_notify(xcb_property_notify_event_t * event)
35+static void property_notify(xcb_property_notify_event_t * event)
36 {
37     struct xwl_window * xwl_window;
38