Commit 80723ece authored by Lloyd Pique's avatar Lloyd Pique Committed by Commit Bot

exo: zcr_remote_surface_v1::change_zoom_level is since 23

If a client uses an earlier version of the protocol and this event is
sent to it, it can crash in in several ways.

BUG=b:145916692
TEST=Builds

Change-Id: Ia43a724076165ff771fe399407c5fc0464e3df84
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1960987
Auto-Submit: Lloyd Pique <lpique@chromium.org>
Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
Commit-Queue: Lloyd Pique <lpique@chromium.org>
Cr-Commit-Position: refs/heads/master@{#723567}
parent 2f9cd8c2
......@@ -1173,7 +1173,7 @@ void remote_shell_get_remote_surface(wl_client* client,
base::BindRepeating(&HandleRemoteSurfaceDragFinishedCallback,
base::Unretained(remote_surface_resource)));
if (wl_resource_get_version(remote_surface_resource) >= 16) {
if (wl_resource_get_version(remote_surface_resource) >= 23) {
shell_surface->set_change_zoom_level_callback(
shell->CreateChangeZoomLevelCallback(remote_surface_resource));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment