diff options
author | infirit <[email protected]> | 2014-12-18 19:07:46 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-18 19:07:46 +0100 |
commit | 89c2ba95156b8ccd9d7493121f4a691ffbe927c1 (patch) | |
tree | 1b169ab49596d727aa2afc895f044de4a1e4e951 /src/interface.cpp | |
parent | 61a40499507138fd1620475487c1b6772be3e37a (diff) | |
download | mate-system-monitor-89c2ba95156b8ccd9d7493121f4a691ffbe927c1.tar.bz2 mate-system-monitor-89c2ba95156b8ccd9d7493121f4a691ffbe927c1.tar.xz |
Also remember the window position, not only the size
Taken from GSM commit: c123b59145d3b5aa9ba6f65985037b63bcdf2a67
From: Robert Roth <[email protected]>
Gnome bug: http://bugzilla.gnome.org/show_bug.cgi?id=343861
Diffstat (limited to 'src/interface.cpp')
-rw-r--r-- | src/interface.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/interface.cpp b/src/interface.cpp index 7b5b96f..3561ea2 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -635,7 +635,7 @@ void create_main_window (ProcData *procdata) { gint i; - gint width, height; + gint width, height, xpos, ypos; GtkWidget *app; GtkAction *action; GtkWidget *menubar; @@ -667,7 +667,10 @@ create_main_window (ProcData *procdata) width = procdata->config.width; height = procdata->config.height; + xpos = procdata->config.xpos; + ypos = procdata->config.ypos; gtk_window_set_default_size (GTK_WINDOW (app), width, height); + gtk_window_move(GTK_WINDOW (app), xpos, ypos); gtk_window_set_resizable (GTK_WINDOW (app), TRUE); /* create the menubar */ |