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

Comparing rxvt-unicode/src/command.C (file contents):
Revision 1.256 by root, Wed Jan 11 05:14:26 2006 UTC vs.
Revision 1.259 by root, Fri Jan 13 04:59:04 2006 UTC

1311 dDisp; 1311 dDisp;
1312 1312
1313 SET_R (this); 1313 SET_R (this);
1314 SET_LOCALE (locale); 1314 SET_LOCALE (locale);
1315 1315
1316 if (ev.xany.window == vt
1317 && HOOK_INVOKE ((this, HOOK_X_EVENT, DT_XEVENT, &ev, DT_END)))
1318 return;
1319
1316 Window unused_root, unused_child; 1320 Window unused_root, unused_child;
1317 int unused_root_x, unused_root_y; 1321 int unused_root_x, unused_root_y;
1318 unsigned int unused_mask; 1322 unsigned int unused_mask;
1319 1323
1320 switch (ev.type) 1324 switch (ev.type)
1600#endif 1604#endif
1601 } 1605 }
1602 break; 1606 break;
1603 1607
1604 case MotionNotify: 1608 case MotionNotify:
1609 printf ("motion notify\n");//D
1605#ifdef POINTER_BLANK 1610#ifdef POINTER_BLANK
1606 if (hidden_pointer) 1611 if (hidden_pointer)
1607 pointer_unblank (); 1612 pointer_unblank ();
1608#endif 1613#endif
1609#if MENUBAR 1614#if MENUBAR
1920#else 1925#else
1921 selection.rect = false; 1926 selection.rect = false;
1922#endif 1927#endif
1923 1928
1924 /* allow shift+left click to extend selection */ 1929 /* allow shift+left click to extend selection */
1925 if (ev.state & ShiftMask && ! (priv_modes & PrivMode_mouse_report)) 1930 if (ev.state & ShiftMask && !(priv_modes & PrivMode_mouse_report))
1926 { 1931 {
1927 if (MEvent.button == Button1 && clickintime) 1932 if (MEvent.button == Button1 && clickintime)
1928 selection_rotate (ev.x, ev.y); 1933 selection_rotate (ev.x, ev.y);
1929 else 1934 else
1930 selection_extend (ev.x, ev.y, 1); 1935 selection_extend (ev.x, ev.y, 1);
3860 break; 3865 break;
3861 3866
3862 *name++ = '\0'; 3867 *name++ = '\0';
3863 color = atoi (buf) + minCOLOR; 3868 color = atoi (buf) + minCOLOR;
3864 3869
3865 if (!IN_RANGE_EXC (color, minCOLOR, TOTAL_COLORS)) 3870 if (!IN_RANGE_INC (color, minCOLOR, maxTermCOLOR))
3866 break; 3871 break;
3867 3872
3868 if ((buf = strchr (name, ';')) != NULL) 3873 if ((buf = strchr (name, ';')) != NULL)
3869 *buf++ = '\0'; 3874 *buf++ = '\0';
3870 3875
3894 break; 3899 break;
3895 case XTerm_Color_pointer_bg: 3900 case XTerm_Color_pointer_bg:
3896 process_color_seq (XTerm_Color_pointer_bg, Color_pointer_bg, str, resp); 3901 process_color_seq (XTerm_Color_pointer_bg, Color_pointer_bg, str, resp);
3897 break; 3902 break;
3898#ifndef NO_BOLD_UNDERLINE_REVERSE 3903#ifndef NO_BOLD_UNDERLINE_REVERSE
3899 case XTerm_Color_BD:
3900 process_color_seq (XTerm_Color_BD, Color_BD, str, resp);
3901 break;
3902 case XTerm_Color_UL:
3903 process_color_seq (XTerm_Color_UL, Color_UL, str, resp);
3904 break;
3905 case XTerm_Color_RV: 3904 case XTerm_Color_RV:
3906 process_color_seq (XTerm_Color_RV, Color_RV, str, resp); 3905 process_color_seq (XTerm_Color_RV, Color_RV, str, resp);
3906 break;
3907 case Rxvt_Color_BD:
3908 case URxvt_Color_BD:
3909 process_color_seq (op, Color_BD, str, resp);
3910 break;
3911 case Rxvt_Color_UL:
3912 case URxvt_Color_UL:
3913 process_color_seq (op, Color_UL, str, resp);
3907 break; 3914 break;
3908 case URxvt_Color_IT: 3915 case URxvt_Color_IT:
3909 process_color_seq (URxvt_Color_IT, Color_IT, str, resp); 3916 process_color_seq (URxvt_Color_IT, Color_IT, str, resp);
3910 break; 3917 break;
3911#endif 3918#endif
3916 if (am_transparent) 3923 if (am_transparent)
3917 want_full_refresh = want_refresh = 1; 3924 want_full_refresh = want_refresh = 1;
3918 break; 3925 break;
3919#endif 3926#endif
3920 3927
3921 case XTerm_Pixmap: 3928 case Rxvt_Pixmap:
3922 if (*str != ';') 3929 if (*str != ';')
3923 { 3930 {
3924#if XPM_BACKGROUND 3931#if XPM_BACKGROUND
3925 scale_pixmap (""); /* reset to default scaling */ 3932 scale_pixmap (""); /* reset to default scaling */
3926 set_bgPixmap (str); /* change pixmap */ 3933 set_bgPixmap (str); /* change pixmap */
3943 scr_touch (true); 3950 scr_touch (true);
3944#endif 3951#endif
3945 } 3952 }
3946 break; 3953 break;
3947 3954
3948 case XTerm_restoreFG: 3955 case Rxvt_restoreFG:
3949 set_window_color (Color_fg, str); 3956 set_window_color (Color_fg, str);
3950 break; 3957 break;
3951 case XTerm_restoreBG: 3958 case Rxvt_restoreBG:
3952 set_window_color (Color_bg, str); 3959 set_window_color (Color_bg, str);
3953 break; 3960 break;
3954 3961
3955 case XTerm_logfile: 3962 case XTerm_logfile:
3956 // TODO, when secure mode? 3963 // TODO, when secure mode?
3961 if (OPTION (Opt_insecure)) 3968 if (OPTION (Opt_insecure))
3962 menubar_dispatch (const_cast<char *>(str)); // casting away constness is checked 3969 menubar_dispatch (const_cast<char *>(str)); // casting away constness is checked
3963 break; 3970 break;
3964#endif 3971#endif
3965#if 0 3972#if 0
3966 case XTerm_dumpscreen: /* no error notices */ 3973 case Rxvt_dumpscreen: /* no error notices */
3967 { 3974 {
3968 int fd; 3975 int fd;
3969 if ((fd = open (str, O_RDWR | O_CREAT | O_EXCL, 0600)) >= 0) 3976 if ((fd = open (str, O_RDWR | O_CREAT | O_EXCL, 0600)) >= 0)
3970 { 3977 {
3971 scr_dump (fd); 3978 scr_dump (fd);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines