[PATCH weston 2/2] don't break in notify_output_create

U. Artie Eoff ullysses.a.eoff at intel.com
Fri Apr 11 20:44:31 PDT 2014


If more than one input device maps to the new output, then we need
to map all devices to that output... not just the first device.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff at intel.com>
---
 src/libinput-seat.c | 1 -
 src/udev-seat.c     | 1 -
 2 files changed, 2 deletions(-)

diff --git a/src/libinput-seat.c b/src/libinput-seat.c
index 358c9fd..8bf538c 100644
--- a/src/libinput-seat.c
+++ b/src/libinput-seat.c
@@ -320,7 +320,6 @@ notify_output_create(struct wl_listener *listener, void *data)
 		if (device->output_name &&
 		    strcmp(output->name, device->output_name) == 0) {
 			evdev_device_set_output(device, output);
-			break;
 		}
 }
 
diff --git a/src/udev-seat.c b/src/udev-seat.c
index f875e09..5e018de 100644
--- a/src/udev-seat.c
+++ b/src/udev-seat.c
@@ -363,7 +363,6 @@ notify_output_create(struct wl_listener *listener, void *data)
 		if (device->output_name &&
 		    strcmp(output->name, device->output_name) == 0) {
 			evdev_device_set_output(device, output);
-			break;
 		}
 }
 
-- 
1.9.0



More information about the wayland-devel mailing list