Skip to content

Commit

Permalink
cog-platform-fdo: avoid "xdg_surface has never been configured error"
Browse files Browse the repository at this point in the history
Call wl_surface_commit to ensure the configure flag is set to true.
Otherwise we get the following error on iMX8M and no window is
created.

zxdg_surface_v6@10: error 3: xdg_surface has never been configured

Signed-off-by: Peter Griffin <[email protected]>
  • Loading branch information
petegriffin authored and aperezdc committed Dec 13, 2018
1 parent 360a550 commit 2541b36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platform/cog-platform-fdo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,7 @@ create_window (GError **error)
app_id = COG_DEFAULT_APPID;
}
zxdg_toplevel_v6_set_app_id (win_data.xdg_toplevel, app_id);
wl_surface_commit(win_data.wl_surface);
} else if (wl_data.fshell != NULL) {
zwp_fullscreen_shell_v1_present_surface (wl_data.fshell,
win_data.wl_surface,
Expand Down

0 comments on commit 2541b36

Please sign in to comment.