summaryrefslogtreecommitdiffstats
path: root/src/compositor/wayland_wrapper
diff options
context:
space:
mode:
authorLasse Holmstedt <lasse.holmstedt@nokia.com>2012-02-20 10:35:54 +0100
committerJørgen Lind <jorgen.lind@nokia.com>2012-02-20 10:40:37 +0100
commitb1dcf79595b2749de83e558992973ee16cce39aa (patch)
tree41e74cd0e71f0fc74652b2773c79d0320e8e8f9d /src/compositor/wayland_wrapper
parenta9d6833693a8fcbb54f575ff3994b216b7b19d84 (diff)
Fix issues with sendOnScreenVisibilityChange
Initialize variables and send the event in the beginning so that we can be sure both client and server are in sync. Change-Id: Ibabd2fa3cfc2c7defd4804f3fcbdd184eba46652 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper')
-rw-r--r--src/compositor/wayland_wrapper/wlextendedsurface.cpp2
-rw-r--r--src/compositor/wayland_wrapper/wlextendedsurface.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/compositor/wayland_wrapper/wlextendedsurface.cpp b/src/compositor/wayland_wrapper/wlextendedsurface.cpp
index e4dd6bf45..1baa6e9fb 100644
--- a/src/compositor/wayland_wrapper/wlextendedsurface.cpp
+++ b/src/compositor/wayland_wrapper/wlextendedsurface.cpp
@@ -108,7 +108,7 @@ void ExtendedSurface::sendGenericProperty(const QString &name, const QVariant &v
}
-void ExtendedSurface::sendOnScreenVisibllity(bool visible)
+void ExtendedSurface::sendOnScreenVisibility(bool visible)
{
int32_t visibleInt = visible;
wl_resource_post_event(m_extended_surface_resource,WL_EXTENDED_SURFACE_ONSCREEN_VISIBILITY,visibleInt);
diff --git a/src/compositor/wayland_wrapper/wlextendedsurface.h b/src/compositor/wayland_wrapper/wlextendedsurface.h
index 0a28a9156..6edf64a08 100644
--- a/src/compositor/wayland_wrapper/wlextendedsurface.h
+++ b/src/compositor/wayland_wrapper/wlextendedsurface.h
@@ -80,7 +80,7 @@ public:
~ExtendedSurface();
void sendGenericProperty(const QString &name, const QVariant &variant);
- void sendOnScreenVisibllity(bool visible);
+ void sendOnScreenVisibility(bool visible);
void setSubSurface(ExtendedSurface *subSurface,int x, int y);
void removeSubSurface(ExtendedSurface *subSurfaces);