Commit 8dae785a authored by Dominik Laskowski's avatar Dominik Laskowski Committed by Commit Bot

exo: Do not capture cursor before initial commit

Bug: 707170
Test: No DCHECK when mouse first enters gtk3-demo.
Change-Id: Id8c7cd5834b8071384be2967c686988e16eadf9e
Reviewed-on: https://chromium-review.googlesource.com/899912Reviewed-by: default avatarDavid Reveman <reveman@chromium.org>
Commit-Queue: Dominik Laskowski <domlaskowski@chromium.org>
Cr-Commit-Position: refs/heads/master@{#534747}
parent 306c6a75
......@@ -398,6 +398,10 @@ void Pointer::CaptureCursor(const gfx::Point& hotspot) {
DCHECK(root_surface());
DCHECK(focus_surface_);
// Defer capture until surface commit.
if (host_window()->bounds().IsEmpty())
return;
// Submit compositor frame to be captured.
SubmitCompositorFrame();
......
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