Mercurial > pidgin
comparison src/buddy.c @ 3859:9f1893ad06e8
[gaim-migrate @ 4011]
(22:38:45) faceprint: enlightenment actually moves windows around when you have virtual desktops
(22:39:33) faceprint: when i move one screen to the right, gaim is now positioned at -(gaim buddy list width +
window decoration width)
this stops such stupidity from moving gaim off-screen
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 02 Nov 2002 03:41:23 +0000 |
parents | d85208a99af2 |
children | 061ed70be441 |
comparison
equal
deleted
inserted
replaced
3858:b5d7232c3e76 | 3859:9f1893ad06e8 |
---|---|
2465 static void configure_blist_window(GtkWidget *w, GdkEventConfigure *event, void *data) { | 2465 static void configure_blist_window(GtkWidget *w, GdkEventConfigure *event, void *data) { |
2466 if (event->x != blist_pos.x || | 2466 if (event->x != blist_pos.x || |
2467 event->y != blist_pos.y || | 2467 event->y != blist_pos.y || |
2468 event->width != blist_pos.width || | 2468 event->width != blist_pos.width || |
2469 event->height != blist_pos.height) { | 2469 event->height != blist_pos.height) { |
2470 blist_pos.x = event->x; | 2470 blist_pos.x = event->x > 0 ? event->x : 0; |
2471 blist_pos.y = event->y; | 2471 blist_pos.y = event->y > 0 ? event->y : 0; |
2472 blist_pos.width = event->width; | 2472 blist_pos.width = event->width; |
2473 blist_pos.height = event->height; | 2473 blist_pos.height = event->height; |
2474 save_prefs(); | 2474 save_prefs(); |
2475 } | 2475 } |
2476 } | 2476 } |