summaryrefslogtreecommitdiffstats
path: root/src/compositor/wayland_wrapper/wlsurface.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2012-04-20 13:53:47 +0300
committerJørgen Lind <jorgen.lind@nokia.com>2012-04-24 13:48:06 +0200
commitcd20ef07ae8cdf3044555cba6f5d382ab3293d02 (patch)
treeb033d098e02671f804ffb6a2f813e780b4beb30a /src/compositor/wayland_wrapper/wlsurface.cpp
parent193214fdd390dbe6c2d370139976a21019b1c7b0 (diff)
Send expose from qwindow-compositor
Otherwise apps that (correctly) only start rendering on QEvent::Expose will not render at all due to not receiving the event. Turns out calling sendOnScreenVisibilityChange() is not that simple: It does nothing until the extendedsurface instance is created and that happens only after a roundtrip to the client. Therefore the compositor listens to a new signal in WaylandSurface that indicates when the extendedsurface-related functions become functional. Change-Id: I9fdac4a98e2ad5d8c913c2a7aeef5b313f27c50a Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper/wlsurface.cpp')
-rw-r--r--src/compositor/wayland_wrapper/wlsurface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compositor/wayland_wrapper/wlsurface.cpp b/src/compositor/wayland_wrapper/wlsurface.cpp
index 4f8c6f913..301368117 100644
--- a/src/compositor/wayland_wrapper/wlsurface.cpp
+++ b/src/compositor/wayland_wrapper/wlsurface.cpp
@@ -262,6 +262,8 @@ QPoint Surface::lastMousePos() const
void Surface::setExtendedSurface(ExtendedSurface *extendedSurface)
{
m_extendedSurface = extendedSurface;
+ if (m_extendedSurface)
+ emit m_waylandSurface->extendedSurfaceReady();
}
ExtendedSurface *Surface::extendedSurface() const