Commit 13259837 authored by Simo Piiroinen's avatar Simo Piiroinen

[display] Normalize placeholder topmost window pid values. Fixes JB#54297

It used to be that lipstick reported topmost window pid with value -1
when there was no application windows on screen. However due to some
recent change nowadays (also) pid value zero seems to be used in such
situations. As the pid value is used by mce for detecting situations
where some application window is on screen despite lockscreen being
active, there are subtle problems with for example blanking timers and
fingerprint wakeup handling.

Normalize pid values within mce so that -1 is used whenever lipstick
reports value that is less than or equal to zero.
Signed-off-by: default avatarSimo Piiroinen <simo.piiroinen@jolla.com>
parent f4644dba
......@@ -5847,6 +5847,13 @@ static waitfb_t mdy_waitfb_data =
static void
mdy_topmost_window_set_pid(int pid)
{
/* If there is no active application window, lipstick can report
* pid as zero or -1 depending on details that are currently not
* relevant from mce point of view -> normalize and use -1 value.
*/
if( pid <= 0 )
pid = -1;
if( topmost_window_pid == pid )
goto EXIT;
......
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