ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/menubar.C
(Generate patch)

Comparing rxvt-unicode/src/menubar.C (file contents):
Revision 1.23 by root, Mon Feb 7 01:17:03 2005 UTC vs.
Revision 1.24 by root, Fri Aug 5 16:42:44 2005 UTC

2248 break; 2248 break;
2249 2249
2250 case MenuAction: 2250 case MenuAction:
2251 case MenuTerminalAction: 2251 case MenuTerminalAction:
2252 drawbox_menuitem (this_y, -1); 2252 drawbox_menuitem (this_y, -1);
2253#ifdef HAVE_NANOSLEEP
2254 struct timespec rqt;
2255
2256 rqt.tv_sec = 0;
2257 rqt.tv_nsec = MENU_DELAY_USEC * 1000;
2258 nanosleep (&rqt, NULL);
2259#else
2260 /* use select for timing */
2261 struct timeval tv;
2262
2263 tv.tv_sec = 0;
2264 tv.tv_usec = MENU_DELAY_USEC; 2253 rxvt_usleep (MENU_DELAY_USEC);
2265 select (0, NULL, NULL, NULL, &tv);
2266#endif
2267 /* remove menu before sending keys to the application */ 2254 /* remove menu before sending keys to the application */
2268 menu_hide_all (); 2255 menu_hide_all ();
2269#ifndef DEBUG_MENU 2256#ifndef DEBUG_MENU
2270 action_dispatch (& (item->entry.action)); 2257 action_dispatch (& (item->entry.action));
2271#else /* DEBUG_MENU */ 2258#else /* DEBUG_MENU */
2349 if (ev.x >= (Arrows_x + (Width2Pixel (4 * i + i)) / 4) 2336 if (ev.x >= (Arrows_x + (Width2Pixel (4 * i + i)) / 4)
2350 && ev.x < (Arrows_x 2337 && ev.x < (Arrows_x
2351 + (Width2Pixel (4 * i + i + 4)) / 4)) 2338 + (Width2Pixel (4 * i + i + 4)) / 4))
2352 { 2339 {
2353 draw_Arrows (Arrows[i].name, -1); 2340 draw_Arrows (Arrows[i].name, -1);
2354 {
2355#ifdef HAVE_NANOSLEEP
2356 struct timespec rqt;
2357
2358 rqt.tv_sec = 0;
2359 rqt.tv_nsec = MENU_DELAY_USEC * 1000;
2360 nanosleep (&rqt, NULL);
2361#else
2362 /* use select for timing */
2363 struct timeval tv;
2364
2365 tv.tv_sec = 0;
2366 tv.tv_usec = MENU_DELAY_USEC; 2341 rxvt_usleep (MENU_DELAY_USEC);
2367 select (0, NULL, NULL, NULL, &tv);
2368#endif
2369
2370 }
2371 draw_Arrows (Arrows[i].name, +1); 2342 draw_Arrows (Arrows[i].name, +1);
2372#ifdef DEBUG_MENUARROWS 2343#ifdef DEBUG_MENUARROWS
2373 fprintf (stderr, "'%c': ", Arrows[i].name); 2344 fprintf (stderr, "'%c': ", Arrows[i].name);
2374 2345
2375 if (CurrentBar == NULL 2346 if (CurrentBar == NULL

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines