Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'jb54297_zero_topwindow_pid' into 'master'
Normalize placeholder topmost window pid values

See merge request mer-core/mce!149
  • Loading branch information
spiiroin committed May 19, 2021
2 parents f4644db + 1325983 commit 9aa1c6b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/display.c
Expand Up @@ -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;

Expand Down

0 comments on commit 9aa1c6b

Please sign in to comment.