gcolor = *color;
- /* Allocate these colors */
- gdk_colormap_alloc_color (gtk_widget_get_colormap (GTK_WIDGET (window)),
- &gcolor, FALSE, TRUE);
-
/* Apply colors to style */
rc_style = gtk_widget_get_modifier_style (GTK_WIDGET (window));
rc_style->base[GTK_STATE_NORMAL] = gcolor;
if (event->type == GDK_BUTTON_PRESS && event->button == 1) {
window->in_move = TRUE;
- window->x = event->x;
- window->y = event->y;
+ window->x = event->x_root - event->x;
+ window->y = event->y_root - event->y;
gtk_window_begin_move_drag (GTK_WINDOW (widget),
event->button,
event->x_root,