Commit 9aa1c6b0 authored by spiiroin's avatar spiiroin

Merge branch 'jb54297_zero_topwindow_pid' into 'master'

Normalize placeholder topmost window pid values

See merge request !149
parents f4644dba 13259837
......@@ -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