Mercurial > audlegacy
diff src/audacious/ui_skinned_window.c @ 3311:8560d99e36be trunk
revise ui_skinned_window_configure
| author | Tomasz Mon <desowin@gmail.com> |
|---|---|
| date | Fri, 10 Aug 2007 18:18:19 +0200 |
| parents | f02623377013 |
| children | 6c85469949af |
line wrap: on
line diff
--- a/src/audacious/ui_skinned_window.c Fri Aug 10 10:47:03 2007 -0500 +++ b/src/audacious/ui_skinned_window.c Fri Aug 10 18:18:19 2007 +0200 @@ -79,6 +79,26 @@ if (widget_class->configure_event != NULL) widget_class->configure_event(widget, event); + if (!GTK_WIDGET_VISIBLE(widget)) + return FALSE; + + switch(window->type) { + case WINDOW_MAIN: + if (cfg.show_wm_decorations) + gdk_window_get_root_origin(widget->window, &cfg.player_x, &cfg.player_y); + else + gdk_window_get_deskrelative_origin(widget->window, &cfg.player_x, &cfg.player_y); + break; + case WINDOW_EQ: + cfg.equalizer_x = event->x; + cfg.equalizer_y = event->y; + break; + case WINDOW_PLAYLIST: + cfg.playlist_x = event->x; + cfg.playlist_y = event->y; + break; + } + window->x = event->x; window->y = event->y;
