summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-04-20 18:53:07 -0400
committerKristian Høgsberg <krh@bitplanet.net>2011-04-20 18:53:37 -0400
commit7cbdb64ab6014655f915776de5188c0f7f04ee70 (patch)
tree7409b2d841c68ccafa4ddea70ccf4f454b2af426
parent025f7b8f8e941dad8953f9d45a916543c772e3ed (diff)
Fix clients to work with wl_ prefixed interface names
-rw-r--r--clients/dnd.c2
-rw-r--r--clients/simple-client.c2
-rw-r--r--clients/window.c12
3 files changed, 8 insertions, 8 deletions
diff --git a/clients/dnd.c b/clients/dnd.c
index 96b7f811..146f3cd0 100644
--- a/clients/dnd.c
+++ b/clients/dnd.c
@@ -492,7 +492,7 @@ global_handler(struct display *display,
struct wl_drag_offer *offer;
struct dnd_offer *dnd_offer;
- if (strcmp(interface, "drag_offer") != 0)
+ if (strcmp(interface, "wl_drag_offer") != 0)
return;
offer = wl_drag_offer_create(display_get_display(display), id, 1);
diff --git a/clients/simple-client.c b/clients/simple-client.c
index 5b78fc77..e273fa22 100644
--- a/clients/simple-client.c
+++ b/clients/simple-client.c
@@ -276,7 +276,7 @@ display_handle_global(struct wl_display *display, uint32_t id,
{
struct display *d = data;
- if (strcmp(interface, "compositor") == 0)
+ if (strcmp(interface, "wl_compositor") == 0)
d->compositor = wl_compositor_create(display, id, 1);
}
diff --git a/clients/window.c b/clients/window.c
index cb8439b2..a3281988 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -1646,19 +1646,19 @@ display_handle_global(struct wl_display *display, uint32_t id,
{
struct display *d = data;
- if (strcmp(interface, "compositor") == 0) {
+ if (strcmp(interface, "wl_compositor") == 0) {
d->compositor = wl_compositor_create(display, id, 1);
- } else if (strcmp(interface, "output") == 0) {
+ } else if (strcmp(interface, "wl_output") == 0) {
d->output = wl_output_create(display, id, 1);
wl_output_add_listener(d->output, &output_listener, d);
- } else if (strcmp(interface, "input_device") == 0) {
+ } else if (strcmp(interface, "wl_input_device") == 0) {
display_add_input(d, id);
- } else if (strcmp(interface, "shell") == 0) {
+ } else if (strcmp(interface, "wl_shell") == 0) {
d->shell = wl_shell_create(display, id, 1);
wl_shell_add_listener(d->shell, &shell_listener, d);
- } else if (strcmp(interface, "shm") == 0) {
+ } else if (strcmp(interface, "wl_shm") == 0) {
d->shm = wl_shm_create(display, id, 1);
- } else if (strcmp(interface, "selection_offer") == 0) {
+ } else if (strcmp(interface, "wl_selection_offer") == 0) {
add_selection_offer(d, id);
} else if (d->global_handler) {
d->global_handler(d, interface, id, version);