Mercurial > pidgin
diff src/buddy.c @ 1420:9be6790092dc
[gaim-migrate @ 1430]
backing out the change mishan sent in. it's not working right for me for some reason and i don't feel like trying to figure out why right now.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Tue, 23 Jan 2001 12:08:21 +0000 |
| parents | 42955549cdd9 |
| children | f16e17d42b43 |
line wrap: on
line diff
--- a/src/buddy.c Sun Jan 21 02:55:14 2001 +0000 +++ b/src/buddy.c Tue Jan 23 12:08:21 2001 +0000 @@ -2016,7 +2016,7 @@ { int x, y, width, height; int save = 0; - gdk_window_get_root_origin(blist->window, &x, &y); + gdk_window_get_position(blist->window, &x, &y); gdk_window_get_size(blist->window, &width, &height); if(e->send_event) { /* Is a position event */ @@ -2025,10 +2025,13 @@ blist_pos.x = x; blist_pos.y = y; } else { /* Is a size event */ - if (blist_pos.width != width || blist_pos.width != width) + if (blist_pos.xoff != x || blist_pos.yoff != y || blist_pos.width != width) save = 1; + blist_pos.width = width; blist_pos.height = height; + blist_pos.xoff = x; + blist_pos.yoff = y; } if (save) @@ -2458,7 +2461,8 @@ if (general_options & OPT_GEN_SAVED_WINDOWS) { if (blist_pos.width != 0) { /* Sanity check! */ - gtk_widget_set_uposition(blist, blist_pos.x, blist_pos.y); + gtk_widget_set_uposition(blist, blist_pos.x - blist_pos.xoff, + blist_pos.y - blist_pos.yoff); gtk_widget_set_usize(blist, blist_pos.width, blist_pos.height); } }
