diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-11-23 21:35:19 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-11-24 00:04:29 +0800 |
commit | 5a09311ed6bc01870413327addfd0337d7296a7e (patch) | |
tree | 5654c4f751d719178639af6f3da96930bb775e26 /src/empathy-main-window.c | |
parent | 2035a59cc1d1a7b28d3fd583f49ca74c9b3db503 (diff) | |
download | gsoc2013-empathy-5a09311ed6bc01870413327addfd0337d7296a7e.tar gsoc2013-empathy-5a09311ed6bc01870413327addfd0337d7296a7e.tar.gz gsoc2013-empathy-5a09311ed6bc01870413327addfd0337d7296a7e.tar.bz2 gsoc2013-empathy-5a09311ed6bc01870413327addfd0337d7296a7e.tar.lz gsoc2013-empathy-5a09311ed6bc01870413327addfd0337d7296a7e.tar.xz gsoc2013-empathy-5a09311ed6bc01870413327addfd0337d7296a7e.tar.zst gsoc2013-empathy-5a09311ed6bc01870413327addfd0337d7296a7e.zip |
Drop workaround that restore window position when it gets deiconified
It breaks with metacity because windows are all iconified/deiconified
when switching workspace, and it seems reposition on map is enough.
Diffstat (limited to 'src/empathy-main-window.c')
-rw-r--r-- | src/empathy-main-window.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c index bfd6b8991..2a316b99e 100644 --- a/src/empathy-main-window.c +++ b/src/empathy-main-window.c @@ -1194,21 +1194,6 @@ account_manager_prepared_cb (GObject *source_object, g_list_free (accounts); } -static gboolean -main_window_state_event_cb (GtkWidget *widget, - GdkEventWindowState *event, - EmpathyMainWindow *window) -{ - /* Force reloading geometry because some WM lose it in the - * iconify/deiconify process */ - if ((event->changed_mask & GDK_WINDOW_STATE_ICONIFIED) != 0 && - (event->new_window_state & GDK_WINDOW_STATE_ICONIFIED) == 0) { - empathy_geometry_load (GTK_WINDOW (window->window), GEOMETRY_NAME); - } - - return FALSE; -} - GtkWidget * empathy_main_window_show (void) { @@ -1257,7 +1242,6 @@ empathy_main_window_show (void) empathy_builder_connect (gui, window, "main_window", "destroy", main_window_destroy_cb, - "main_window", "window-state-event", main_window_state_event_cb, "chat_quit", "activate", main_window_chat_quit_cb, "chat_new_message", "activate", main_window_chat_new_message_cb, "view_history", "activate", main_window_view_history_cb, |