[Wayland-bugs] [Bug 69719] [bug] Weston won't "wake up" after two touch events

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Sep 30 05:36:29 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=69719

--- Comment #3 from Neil Roberts <neil at linux.intel.com> ---
Created attachment 86846
  --> https://bugs.freedesktop.org/attachment.cgi?id=86846&action=edit
Set new state before emitting wake signal in  weston_compsitor_wake

The wake handler set up by the shell will try to unlock the screen
which works by setting up an animation which fades in the display. The
animation is started by first scheduling a repaint. Subsequent
repaints are scheduled whenever the previous frame is finished.
However in the case of the wake up signal the state is still
WESTON_COMPOSITOR_SLEEPING when the animation is started.
weston_output_schedule_repaint() ignores attempts to schedule a
repaint if the compositor is sleeping which means the animation never
gets run and will never complete.

The animation gets unstuck and continues if anything else schedules a
repaint after the state has been changed so the bug only gets hit in
certain conditions. The first wake up creates the lock surface which
causes a redraw when the first buffer is attached so the first wake up
is always ok. A redraw can be triggered in the subsequent wake ups
just by moving the mouse.

A good way to trigger the bug is to try to wake up the compositor by
pressing the shift key. If you let the compositor go back to sleep
after waking it up without unlocking it, the second press of the shift
key will not cause a redraw so the animation will not run and it won't
fade in.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20130930/2aca8fa1/attachment.html>


More information about the Wayland-bugs mailing list