From 578856ed9ed57ac9fa5e96dbeb99dd12a37d4571 Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Thu, 31 May 2012 22:27:24 -0400 Subject: [PATCH] Fix the overlay's position a set offset. 40 pixels from the right edge of the screen. --- termite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/termite.c b/termite.c index c787a93..2d04c88 100644 --- a/termite.c +++ b/termite.c @@ -155,7 +155,7 @@ static gboolean position_overlay_cb(GtkOverlay *overlay, GtkWidget *widget, GdkR GtkRequisition req; gtk_widget_get_preferred_size(widget, NULL, &req); - alloc->x = 2 * main_alloc.width / 3 - req.width / 2; + alloc->x = main_alloc.width - req.width - 40; alloc->y = 0; alloc->width = MIN(main_alloc.width, req.width); alloc->height = MIN(main_alloc.height, req.height);