summaryrefslogtreecommitdiff
path: root/src/ui/chats.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/chats.c')
-rw-r--r--src/ui/chats.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/chats.c b/src/ui/chats.c
index f727a37..ddeb5d4 100644
--- a/src/ui/chats.c
+++ b/src/ui/chats.c
@@ -141,7 +141,7 @@ chats_event(UI_CHATS_Handle *chats,
app->chat.context = chats->selected;
}
else
- chats->open_dialog.window = chats->window;
+ chats->open_dialog.window = &(chats->window);
break;
}
default:
@@ -156,7 +156,7 @@ chats_event(UI_CHATS_Handle *chats,
if (!(chats->window))
return;
- const int height = getmaxy(chats->window) - getbegy(chats->window);
+ const int height = getmaxy(chats->window);
const int y = chats->line_selected - chats->line_offset;
if (y < 0)
@@ -184,7 +184,7 @@ _chats_print_entry(UI_CHATS_Handle *chats,
if (y < 0)
return GNUNET_YES;
- const int height = getmaxy(chats->window) - getbegy(chats->window);
+ const int height = getmaxy(chats->window);
if (y >= height)
return GNUNET_NO;