summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorClement Lefebvre <[email protected]>2015-09-10 14:25:34 +0100
committerClement Lefebvre <[email protected]>2015-09-10 14:43:12 +0100
commitd2dd87abc30e850bc18cd15b854e0246a22db880 (patch)
tree703977e385ad9025b4679b078b348389cd989b35 /src
parentcd39b1a25d204ed9fe7899a895bd75f71032ded5 (diff)
downloadcaja-d2dd87abc30e850bc18cd15b854e0246a22db880.tar.bz2
caja-d2dd87abc30e850bc18cd15b854e0246a22db880.tar.xz
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..)
Diffstat (limited to 'src')
-rw-r--r--src/caja-application.c24
1 files changed, 1 insertions, 23 deletions
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);