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

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.314 by root, Wed Nov 5 12:28:15 2008 UTC vs.
Revision 1.316 by root, Sun Apr 26 01:51:20 2009 UTC

990 update_background (); 990 update_background ();
991#endif 991#endif
992 } 992 }
993 993
994 if (fix_screen || old_height == 0) 994 if (fix_screen || old_height == 0)
995 {
996 scr_reset (); 995 scr_reset ();
997 }
998 996
999 // TODO, with nvidia-8178, resizes kill the alpha channel, report if not fixed in newer version 997 // TODO, with nvidia-8178, resizes kill the alpha channel, report if not fixed in newer version
1000 //scr_touch (false); 998 //scr_touch (false);
1001 999
1002#ifdef HAVE_BG_PIXMAP 1000#ifdef HAVE_BG_PIXMAP
1077 1075
1078/* Checking whether input method is running. */ 1076/* Checking whether input method is running. */
1079bool 1077bool
1080rxvt_term::IMisRunning () 1078rxvt_term::IMisRunning ()
1081{ 1079{
1082 char *p;
1083 Atom atom; 1080 Atom atom;
1084 Window win; 1081 Window win;
1085 char server[IMBUFSIZ]; 1082 char server[IMBUFSIZ];
1086 1083
1087 /* get current locale modifier */ 1084 /* get current locale modifier */
1088 if ((p = XSetLocaleModifiers (NULL)) != NULL) 1085 if (char *p = XSetLocaleModifiers (0))
1089 { 1086 {
1090 strcpy (server, "@server="); 1087 strcpy (server, "@server=");
1091 strncat (server, & (p[4]), IMBUFSIZ - 9); /* skip "@im=" */ 1088 strncat (server, p + 4, IMBUFSIZ - 9); /* skip "@im=" */
1092 1089
1093 if ((p = strchr (server + 1, '@')) != NULL) /* first one only */ 1090 if (p = strchr (server + 1, '@')) /* first one only */
1094 *p = '\0'; 1091 *p = '\0';
1095 1092
1096 atom = XInternAtom (dpy, server, False); 1093 atom = XInternAtom (dpy, server, False);
1097 win = XGetSelectionOwner (dpy, atom); 1094 win = XGetSelectionOwner (dpy, atom);
1098 1095

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines