Skip to content
Snippets Groups Projects
Commit 8f504a8e authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

[#1641] Remember position when popping-out from systray

parent 624b3d1e
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ void popup_main_window (void) ...@@ -35,6 +35,7 @@ void popup_main_window (void)
if (__POPUP_WINDOW) if (__POPUP_WINDOW)
{ {
gtk_widget_show (get_main_window ()); gtk_widget_show (get_main_window ());
gtk_window_move (GTK_WINDOW (get_main_window ()), dbus_get_window_position_x (), dbus_get_window_position_y ());
set_minimized (FALSE); set_minimized (FALSE);
} }
} }
...@@ -61,6 +62,7 @@ void show_hide (void) ...@@ -61,6 +62,7 @@ void show_hide (void)
if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(show_menu_item))) if(gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(show_menu_item)))
{ {
gtk_widget_show(GTK_WIDGET(get_main_window())); gtk_widget_show(GTK_WIDGET(get_main_window()));
gtk_window_move (GTK_WINDOW (get_main_window ()), dbus_get_window_position_x (), dbus_get_window_position_y ());
set_minimized( !MINIMIZED ); set_minimized( !MINIMIZED );
} }
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment