ecore-wl2: Use correct serial value
authorChris Michael <cp.michael@samsung.com>
Tue, 10 Jan 2017 13:49:24 +0000 (08:49 -0500)
committerChris Michael <cp.michael@samsung.com>
Tue, 10 Jan 2017 13:51:33 +0000 (08:51 -0500)
When we get a configure event, we should be using the current display
serial to set as the window configure serial value. Previous code
would always end up setting the window configure_serial to 0 as
win->display->serial was not getting updated.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_wl2/ecore_wl2_window.c

index 2314b78..a51edca 100644 (file)
@@ -237,7 +237,7 @@ _zxdg_toplevel_cb_configure(void *data, struct zxdg_toplevel_v6 *zxdg_toplevel E
           }
      }
 
-   win->configure_serial = win->display->serial;
+   win->configure_serial = wl_display_get_serial(win->display->wl.display);
    if ((win->geometry.w == width) && (win->geometry.h == height))
      width = height = 0;
    else if ((!width) && (!height) && (!win->fullscreen) && (!win->maximized) &&