-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: rxvt-unicode-sixel
action: commit
revision:
path_from:
revision_from: a39ad676de99f7ace8f46fcf75d927427bfa2841:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

commit a39ad676de99f7ace8f46fcf75d927427bfa2841
Author: Marc Lehmann <schmorp@schmorp.de>
Date:   Fri Dec 14 02:08:18 2007 +0000

    *** empty log message ***

diff --git a/src/command.C b/src/command.C

index 0ca537c62c803d2109be19b39b5dfcf98bfbe044..

index ..47a2d7d4008c44282a8aa215f5c9940174c8f3fb 100644

--- a/src/command.C
+++ b/src/command.C
@@ -1050,7 +1050,7 @@ rxvt_term::prepare_cb (ev::prepare &w, int revents)

   display->flush ();

-  if (want_refresh && !ev_is_active (&flush_ev))
+  if (want_refresh && !flush_ev.is_active ())
     flush_ev.start (1. / 60.); // refresh at max. 60 Hz normally
 }

@@ -1581,7 +1581,7 @@ rxvt_term::x_cb (XEvent &ev)
                         /* don't clobber the current delay if we are
                          * already in the middle of scrolling.
                          */
-                        if (!ev_is_active (&sel_scroll_ev))
+                        if (!sel_scroll_ev.is_active ())
                           sel_scroll_ev.start (SCROLLBAR_INITIAL_DELAY, SCROLLBAR_CONTINUOUS_DELAY);

                         /* save the event params so we can highlight
@@ -1614,8 +1614,7 @@ rxvt_term::x_cb (XEvent &ev)
                         /* we are within the text window, so we
                          * shouldn't be scrolling
                          */
-                        if (ev_is_active (&sel_scroll_ev))
-                          sel_scroll_ev.stop();
+                        sel_scroll_ev.stop();
                       }
 #endif
 #ifdef MOUSE_THRESHOLD
@@ -1977,10 +1976,12 @@ rxvt_term::button_press (XButtonEvent &ev)
               else if (scrollbarrxvt_dnButton (ev.y))
                 upordown = 1;	/* down */
             }
+
           if (upordown)
             {
 #ifndef NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING
-              cont_scroll_ev.start (SCROLLBAR_INITIAL_DELAY, SCROLLBAR_CONTINUOUS_DELAY);
+              if (!cont_scroll_ev.is_active ())
+                cont_scroll_ev.start (SCROLLBAR_INITIAL_DELAY, SCROLLBAR_CONTINUOUS_DELAY);
 #endif
               if (scr_page (upordown < 0 ? UP : DN, 1))
                 {
@@ -2070,8 +2071,7 @@ rxvt_term::button_release (XButtonEvent &ev)
     }

 #ifdef SELECTION_SCROLLING
-  if (ev_is_active (&sel_scroll_ev))
-    sel_scroll_ev.stop();
+  sel_scroll_ev.stop();
 #endif

   if (ev.window == vt)
@@ -2153,7 +2153,8 @@ rxvt_term::button_release (XButtonEvent &ev)
                   if (mouse_slip_wheel_speed < -nrow) mouse_slip_wheel_speed = -nrow;
                   if (mouse_slip_wheel_speed > +nrow) mouse_slip_wheel_speed = +nrow;

-                  slip_wheel_ev.start (SCROLLBAR_CONTINUOUS_DELAY, SCROLLBAR_CONTINUOUS_DELAY);
+                  if (!slip_wheel_ev.is_active ())
+                    slip_wheel_ev.start (SCROLLBAR_CONTINUOUS_DELAY, SCROLLBAR_CONTINUOUS_DELAY);
                 }
               else
                 {

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

-- Response ended

-- Page fetched on Sun Jun 2 12:05:23 2024