[nautilus] window: open detached tab windows at mouse position



commit 7eac61a5b9051a48f6b3ac13cf2fd0f161701163
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Sep 17 12:14:30 2012 -0400

    window: open detached tab windows at mouse position
    
    Instead of using the default WM window position, since it's a DnD
    operation.

 src/nautilus-window.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index f7606e4..13408fc 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1121,6 +1121,8 @@ notebook_create_window_cb (GtkNotebook *notebook,
 	g_object_set_data (G_OBJECT (slot), "dnd-window-slot",
 			   GINT_TO_POINTER (TRUE));
 
+	gtk_window_set_position (GTK_WINDOW (new_window), GTK_WIN_POS_MOUSE);
+
 	return GTK_NOTEBOOK (new_window->details->notebook);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]