commit f72c996
Michael Forney
·
2013-06-14 11:43:26 +0000 UTC
parent 2dbf406
Style
1 files changed,
+6,
-3
+6,
-3
1@@ -11,7 +11,7 @@
2 #include "region.h"
3 #include "data_device_manager.h"
4
5-const char default_seat[] = "seat0";
6+static const char default_seat[] = "seat0";
7
8 struct repaint_operation
9 {
10@@ -141,11 +141,13 @@ static void handle_surface_event(struct wl_listener * listener, void * data)
11 case SWC_SURFACE_REPAINT:
12 {
13 struct swc_output * output;
14+
15 wl_list_for_each(output, &compositor->outputs, link)
16 {
17 if (surface->output_mask & (1 << output->id))
18 schedule_repaint_for_output(compositor, output);
19 }
20+
21 break;
22 }
23 }
24@@ -216,7 +218,6 @@ static void handle_switch_vt(uint32_t time, uint32_t value, void * data)
25 static void create_surface(struct wl_client * client,
26 struct wl_resource * resource, uint32_t id)
27 {
28- printf("compositor_create_surface\n");
29 struct swc_compositor * compositor = resource->data;
30 struct swc_surface * surface;
31 struct swc_output * output;
32@@ -229,12 +230,14 @@ static void create_surface(struct wl_client * client,
33 return;
34 }
35
36+ printf("compositor_create_surface: %p\n", surface);
37+
38 output = wl_container_of(compositor->outputs.next, output, link);
39
40 /* Initialize compositor state */
41 surface->compositor_state = (struct swc_compositor_surface_state) {
42 .compositor = compositor,
43- .event_listener = (struct wl_listener) {
44+ .event_listener = {
45 .notify = &handle_surface_event
46 },
47 .destroy_listener = {