repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 9346d49bc2104e65fec404326cd82c53cb23b5a9:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 9346d49bc2104e65fec404326cd82c53cb23b5a9
Author: Emanuele Giaquinta 
Date:   Fri Jan 16 20:13:01 2015 +0000

    In tabbed, check for a pending refresh in the active tab after forwarding a key press/release event to it.

diff --git a/src/perl/tabbed b/src/perl/tabbed
index e9ad415e99ea9bfd768100a9fecf34cbc5c59e09..
index ..f82118466a61a642e2d08cff39cdfd1e0329c0f8 100644
--- a/src/perl/tabbed
+++ b/src/perl/tabbed
@@ -216,6 +216,7 @@ sub on_key_press {
    my ($self, $event) = @_;

    $self->{cur}->key_press ($event->{state}, $event->{keycode}, $event->{time});
+   $self->{cur}->refresh_check;

    1
 }
@@ -224,6 +225,7 @@ sub on_key_release {
    my ($self, $event) = @_;

    $self->{cur}->key_release ($event->{state}, $event->{keycode}, $event->{time});
+   $self->{cur}->refresh_check;

    1
 }
diff --git a/src/rxvtperl.xs b/src/rxvtperl.xs
index 8a4b949d4cbc9ba1b18627b4ef7b350adb240c0f..
index ..39bb144959e8feb7d03a563936a451e9253d44d9 100644
--- a/src/rxvtperl.xs
+++ b/src/rxvtperl.xs
@@ -1575,6 +1575,9 @@ rxvt_term::want_refresh ()
         THIS->want_refresh = 1;
 	THIS->refresh_check ();

+void
+rxvt_term::refresh_check ()
+
 void
 rxvt_term::ROW_t (int row_number, SV *new_text = 0, int start_col = 0, int start_ofs = 0, int max_len = MAX_COLS)
 	PPCODE:
diff --git a/src/urxvt.pm b/src/urxvt.pm
index 529cef91c846e5ae32708be3a9e932353425d6d9..
index ..b9a0914f83574c8bcb0b24f9d359387bb2634dd4 100644
--- a/src/urxvt.pm
+++ b/src/urxvt.pm
@@ -1699,6 +1699,10 @@ differ, it redraws the differences.

 Used after changing terminal contents to display them.

+=item $term->refresh_check
+
+Checks if a refresh has been requested and, if so, schedules one.
+
 =item $text = $term->ROW_t ($row_number[, $new_text[, $start_col]])

 Returns the text of the entire row with number C<$row_number>. Row C<< $term->top_row >>

-----END OF PAGE-----