mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
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:
parent
e2105dc721
commit
a7f083897f
@ -1512,7 +1512,8 @@ meta_frames_update_prelit_control (MetaFrames *frames,
|
||||
break;
|
||||
}
|
||||
|
||||
if (control == frame->prelit_control)
|
||||
if (control == frame->prelit_control &&
|
||||
frame->button_state == META_BUTTON_STATE_PRELIGHT)
|
||||
return;
|
||||
|
||||
/* Save the old control so we can unprelight it */
|
||||
|
Loading…
Reference in New Issue
Block a user