Window: Set urgent flag only when not already set

cat <binary_file_with_lots_of_BEL> in terminology would slow down
everything because of the urgent flag (and talking to X).
This commit is contained in:
Jean-Philippe Andre 2015-07-06 12:28:02 +09:00
parent 5edec15fb0
commit da46a44064
1 changed files with 2 additions and 0 deletions

View File

@ -4451,6 +4451,8 @@ _elm_win_profile_get(Eo *obj EINA_UNUSED, Elm_Win_Data *sd)
EOLIAN static void
_elm_win_urgent_set(Eo *obj EINA_UNUSED, Elm_Win_Data *sd, Eina_Bool urgent)
{
if (sd->urgent == urgent)
return;
sd->urgent = urgent;
TRAP(sd, urgent_set, urgent);
#ifdef HAVE_ELEMENTARY_X