1
0
Fork 0

frames: Only skip updating prelight when both control and state match

prelit_control is used for both prelight and pressed states, so the early
return in update_prelit_control() misses the case where prelit_control
already matches the control we are updating, but its state is PRESSED
rather than PRELIGHT. Fix the condition to not have pressed controls
linger around erroneously.

https://bugzilla.gnome.org/show_bug.cgi?id=731058
This commit is contained in:
Florian Müllner 2014-05-31 03:30:58 +02:00
parent e2105dc721
commit a7f083897f

View file

@ -1512,7 +1512,8 @@ meta_frames_update_prelit_control (MetaFrames *frames,
break; break;
} }
if (control == frame->prelit_control) if (control == frame->prelit_control &&
frame->button_state == META_BUTTON_STATE_PRELIGHT)
return; return;
/* Save the old control so we can unprelight it */ /* Save the old control so we can unprelight it */