Don't initialize QRegion with an int.
authorSamuel Rødal <samuel.rodal@nokia.com>
Wed, 28 Mar 2012 12:24:30 +0000 (14:24 +0200)
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>
Wed, 28 Mar 2012 12:26:55 +0000 (14:26 +0200)
Using an int probably makes it use the QPolygon constructor with the int
treated as a size, which is not what we want.

Change-Id: Id382d5ebf15c8260b55d51c5b566e5e3ed054585
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
src/compositor/wayland_wrapper/wlsurface.cpp

index 9d4658d..fc2d8d9 100644 (file)
@@ -84,8 +84,6 @@ Surface::Surface(struct wl_client *client, uint32_t id, Compositor *compositor)
     , m_extendedSurface(0)
     , m_subSurface(0)
     , m_shellSurface(0)
-    , m_inputRegion(0)
-    , m_opaqueRegion(0)
 {
     wl_list_init(&m_frame_callback_list);
     addClientResource(client, &base()->resource, id, &wl_surface_interface,