aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_content_view
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2020-04-01 00:30:33 +0200
committerMarvin W <git@larma.de>2020-04-01 00:30:37 +0200
commit2f52291be546b6fd68a1d8c4eb81978cb592a882 (patch)
tree0be4be59d2484a9b273710747c42ae3cb14c0a07 /main/src/ui/conversation_content_view
parent12cd56612dd6edd056e2cd8aae59ea3ae8f05d1e (diff)
downloaddino-2f52291be546b6fd68a1d8c4eb81978cb592a882.tar.gz
dino-2f52291be546b6fd68a1d8c4eb81978cb592a882.zip
Fix issue rendering messages outside reachable scroll area
Related: https://gitlab.gnome.org/GNOME/gtk/-/issues/2556
Diffstat (limited to 'main/src/ui/conversation_content_view')
-rw-r--r--main/src/ui/conversation_content_view/conversation_view.vala8
1 files changed, 7 insertions, 1 deletions
diff --git a/main/src/ui/conversation_content_view/conversation_view.vala b/main/src/ui/conversation_content_view/conversation_view.vala
index c68ee5de..ac6df1fc 100644
--- a/main/src/ui/conversation_content_view/conversation_view.vala
+++ b/main/src/ui/conversation_content_view/conversation_view.vala
@@ -106,7 +106,7 @@ public class ConversationView : Box, Plugins.ConversationItemCollection, Plugins
// Get widget under pointer
int h = 0;
bool @break = false;
- Widget w = null;
+ Widget? w = null;
main.@foreach((widget) => {
if (break) return;
@@ -118,6 +118,12 @@ public class ConversationView : Box, Plugins.ConversationItemCollection, Plugins
}
});
+ if (w == null) {
+ if (currently_highlighted != null) currently_highlighted.unset_state_flags(StateFlags.PRELIGHT);
+ currently_highlighted = null;
+ return;
+ }
+
// Get widget coordinates in main
int widget_x, widget_y;
w.translate_coordinates(main, 0, 0, out widget_x, out widget_y);