From d2dd87abc30e850bc18cd15b854e0246a22db880 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Thu, 10 Sep 2015 14:25:34 +0100 Subject: When opening the first window, don't restore the position of the last closed window. It's confusing to users (the last closed window is irrelevant within one session with multiple windows open) and it can lead to really bad issues which users consider bugs (why is my first window behaving differently than other windows? why is my first window appearing in the corner of my screen? why when I open caja for the first time my window doesn't appear on the monitor my mouse presently is? etc..) --- src/caja-application.c | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'src') diff --git a/src/caja-application.c b/src/caja-application.c index 557ae7e5..28c1ce1a 100644 --- a/src/caja-application.c +++ b/src/caja-application.c @@ -1563,24 +1563,6 @@ caja_application_get_spatial_window (CajaApplication *application, return window; } -static gboolean -another_navigation_window_already_showing (CajaWindow *the_window) -{ - GList *list, *item; - - list = caja_application_get_window_list (); - for (item = list; item != NULL; item = item->next) - { - if (item->data != the_window && - CAJA_IS_NAVIGATION_WINDOW (item->data)) - { - return TRUE; - } - } - - return FALSE; -} - CajaWindow * caja_application_create_navigation_window (CajaApplication *application, const char *startup_id, @@ -1610,16 +1592,12 @@ caja_application_create_navigation_window (CajaApplication *application, if (geometry_string != NULL && geometry_string[0] != 0) { - /* Ignore saved window position if a window with the same - * location is already showing. That way the two windows - * wont appear at the exact same location on the screen. - */ eel_gtk_window_set_initial_geometry_from_string (GTK_WINDOW (window), geometry_string, CAJA_NAVIGATION_WINDOW_MIN_WIDTH, CAJA_NAVIGATION_WINDOW_MIN_HEIGHT, - another_navigation_window_already_showing (window)); + TRUE); } g_free (geometry_string); -- cgit v1.2.1