Properly report content orientation changes in the compositor.
authorSamuel Rødal <samuel.rodal@nokia.com>
Wed, 28 Mar 2012 15:15:23 +0000 (17:15 +0200)
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>
Wed, 28 Mar 2012 15:17:58 +0000 (17:17 +0200)
Change-Id: I9a65299c140c645edc05bdddb92e792e3d57275a
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
src/compositor/wayland_wrapper/wlextendedsurface.cpp

index 3b46abc..4087bf0 100644 (file)
@@ -170,7 +170,7 @@ void ExtendedSurface::set_content_orientation(struct wl_client *client,
 
     Qt::ScreenOrientation oldOrientation = extended_surface->m_contentOrientation;
     extended_surface->m_contentOrientation = screenOrientationFromWaylandOrientation(orientation);
-    if (extended_surface->m_windowOrientation != oldOrientation)
+    if (extended_surface->m_contentOrientation != oldOrientation)
         emit extended_surface->m_surface->waylandSurface()->contentOrientationChanged();
 }