tablet-shell: Fix copy and paste error in unlock handler
authorRob Bradford <rob@linux.intel.com>
Tue, 9 Jul 2013 11:12:49 +0000 (12:12 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 9 Jul 2013 21:10:34 +0000 (17:10 -0400)
The signal handler was using the wrong member to find the containing
structure of the unlock listener.

https://bugs.freedesktop.org/show_bug.cgi?id=57637

src/tablet-shell.c

index fdeb856..192abc7 100644 (file)
@@ -415,7 +415,7 @@ static void
 tablet_shell_unlock(struct wl_listener *listener, void *data)
 {
        struct tablet_shell *shell =
-               container_of(listener, struct tablet_shell, lock_listener);
+               container_of(listener, struct tablet_shell, unlock_listener);
 
        weston_compositor_wake(shell->compositor);
 }