Zvt fixes



Hi,

A couple of patches I've made for Zvt bugs, should go in CVS.

This one fixes the "my background changes don't take effect in
gnome-terminal" issue:

--- gnome-libs-1.2.4/zvt/zvtterm.c.setbgfix     Sat Aug  5 23:11:18 2000
+++ gnome-libs-1.2.4/zvt/zvtterm.c      Sat Aug  5 23:11:52 2000
@@ -3696,6 +3696,7 @@
     gdk_gc_set_fill (bgc, GDK_SOLID);
     pen.pixel = term->colors[17];
     gdk_gc_set_foreground (bgc, &pen);
+    gdk_gc_set_background (term->fore_gc, &pen);
     if (term->background.pix) {
       gdk_pixmap_unref(term->background.pix);
       term->background.pix = 0;


This fixes "while selecting, if you go into another terminal 
that terminal's events control the selection":

--- gnome-libs-1.2.4/zvt/zvtterm.c.grabfix      Wed Aug  9 15:53:08 2000
+++ gnome-libs-1.2.4/zvt/zvtterm.c      Wed Aug  9 15:53:28 2000
@@ -1550,7 +1550,7 @@
     d( printf("selection starting %d %d\n", x, y) );
 
     gtk_grab_add (widget);
-    gdk_pointer_grab (widget->window, TRUE,
+    gdk_pointer_grab (widget->window, FALSE,
                      GDK_BUTTON_RELEASE_MASK |
                      GDK_BUTTON_MOTION_MASK |
                      GDK_POINTER_MOTION_HINT_MASK,
@@ -1603,7 +1603,7 @@
       vt_draw_selection(vx);
       
       gtk_grab_add (widget);
-      gdk_pointer_grab (widget->window, TRUE,
+      gdk_pointer_grab (widget->window, FALSE,
                        GDK_BUTTON_RELEASE_MASK |
                        GDK_BUTTON_MOTION_MASK |
                        GDK_POINTER_MOTION_HINT_MASK,

The remaining terminal issue is here, help figuring it out is much
appreciated:

  http://www.redhat.com/bugzilla/show_bug.cgi?id=14744

To reproduce this one, choose the 14-point fixed font, and run
something like:
 for I in `seq 1 20`; do echo "HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH"; done
while the bottom-right corner of the terminal is covered. If you don't 
see redraw bugs, try moving the window covering the corner around. It
only happens or happens differently depending on exactly what area is
covered up.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]