Fix late highlighting of conversation items
If the pointer was moved from outside to a conversation item with a straight horizontal move, the conversation item was not getting highlighted.
This commit is contained in:
parent
2631a9bdba
commit
b73ec9e0ca
|
@ -102,7 +102,10 @@ public class ConversationView : Box, Plugins.ConversationItemCollection, Plugins
|
||||||
|
|
||||||
private bool on_leave_notify_event(Gdk.EventCrossing event) {
|
private bool on_leave_notify_event(Gdk.EventCrossing event) {
|
||||||
mouse_inside = false;
|
mouse_inside = false;
|
||||||
if (currently_highlighted != null) currently_highlighted.unset_state_flags(StateFlags.PRELIGHT);
|
if (currently_highlighted != null) {
|
||||||
|
currently_highlighted.unset_state_flags(StateFlags.PRELIGHT);
|
||||||
|
currently_highlighted = null;
|
||||||
|
}
|
||||||
message_menu_box.visible = false;
|
message_menu_box.visible = false;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -114,7 +117,7 @@ public class ConversationView : Box, Plugins.ConversationItemCollection, Plugins
|
||||||
}
|
}
|
||||||
|
|
||||||
private void update_highlight(int x_root, int y_root) {
|
private void update_highlight(int x_root, int y_root) {
|
||||||
if ((last_y_root - y_root).abs() <= 2) {
|
if (currently_highlighted != null && (last_y_root - y_root).abs() <= 2) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue