summaryrefslogtreecommitdiff
path: root/gtk/gtkhandlebox.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkhandlebox.c')
-rw-r--r--gtk/gtkhandlebox.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c
index 33d48a2ad6..d4d0125654 100644
--- a/gtk/gtkhandlebox.c
+++ b/gtk/gtkhandlebox.c
@@ -1207,6 +1207,12 @@ gtk_handle_box_motion (GtkWidget *widget,
width = child_requisition.width + 2 * GTK_CONTAINER (hb)->border_width;
height = child_requisition.height + 2 * GTK_CONTAINER (hb)->border_width;
+
+ if (hb->handle_position == GTK_POS_LEFT || hb->handle_position == GTK_POS_RIGHT)
+ width += DRAG_HANDLE_SIZE;
+ else
+ height += DRAG_HANDLE_SIZE;
+
gdk_window_move_resize (hb->float_window, new_x, new_y, width, height);
gdk_window_reparent (hb->bin_window, hb->float_window, 0, 0);
gdk_window_set_hints (hb->float_window, new_x, new_y, 0, 0, 0, 0, GDK_HINT_POS);