/[emacs]/emacs/src/xterm.c
ViewVC logotype

Diff of /emacs/src/xterm.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.804.2.14 by miles, Tue Sep 21 09:34:11 2004 UTC revision 1.804.2.15 by miles, Thu Oct 14 08:49:55 2004 UTC
# Line 572  x_update_window_end (w, cursor_on_p, mou Line 572  x_update_window_end (w, cursor_on_p, mou
572                                  output_cursor.vpos,                                  output_cursor.vpos,
573                                  output_cursor.x, output_cursor.y);                                  output_cursor.x, output_cursor.y);
574    
575        x_draw_vertical_border (w);        if (draw_window_fringes (w, 1))
576            x_draw_vertical_border (w);
       draw_window_fringes (w);  
577    
578        UNBLOCK_INPUT;        UNBLOCK_INPUT;
579      }      }
# Line 3389  x_find_modifier_meanings (dpyinfo) Line 3388  x_find_modifier_meanings (dpyinfo)
3388       Alt keysyms are on.  */       Alt keysyms are on.  */
3389    {    {
3390      int row, col;       /* The row and column in the modifier table.  */      int row, col;       /* The row and column in the modifier table.  */
3391        int found_alt_or_meta;
3392    
3393      for (row = 3; row < 8; row++)      for (row = 3; row < 8; row++)
3394        {
3395          found_alt_or_meta = 0;
3396        for (col = 0; col < mods->max_keypermod; col++)        for (col = 0; col < mods->max_keypermod; col++)
3397          {          {
3398            KeyCode code            KeyCode code = mods->modifiermap[(row * mods->max_keypermod) + col];
             = mods->modifiermap[(row * mods->max_keypermod) + col];  
3399    
3400            /* Zeroes are used for filler.  Skip them.  */            /* Zeroes are used for filler.  Skip them.  */
3401            if (code == 0)            if (code == 0)
# Line 3412  x_find_modifier_meanings (dpyinfo) Line 3413  x_find_modifier_meanings (dpyinfo)
3413                    {                    {
3414                    case XK_Meta_L:                    case XK_Meta_L:
3415                    case XK_Meta_R:                    case XK_Meta_R:
3416                        found_alt_or_meta = 1;
3417                      dpyinfo->meta_mod_mask |= (1 << row);                      dpyinfo->meta_mod_mask |= (1 << row);
3418                      break;                      break;
3419    
3420                    case XK_Alt_L:                    case XK_Alt_L:
3421                    case XK_Alt_R:                    case XK_Alt_R:
3422                        found_alt_or_meta = 1;
3423                      dpyinfo->alt_mod_mask |= (1 << row);                      dpyinfo->alt_mod_mask |= (1 << row);
3424                      break;                      break;
3425    
3426                    case XK_Hyper_L:                    case XK_Hyper_L:
3427                    case XK_Hyper_R:                    case XK_Hyper_R:
3428                      dpyinfo->hyper_mod_mask |= (1 << row);                      if (!found_alt_or_meta)
3429                          dpyinfo->hyper_mod_mask |= (1 << row);
3430                        code_col = syms_per_code;
3431                        col = mods->max_keypermod;
3432                      break;                      break;
3433    
3434                    case XK_Super_L:                    case XK_Super_L:
3435                    case XK_Super_R:                    case XK_Super_R:
3436                      dpyinfo->super_mod_mask |= (1 << row);                      if (!found_alt_or_meta)
3437                          dpyinfo->super_mod_mask |= (1 << row);
3438                        code_col = syms_per_code;
3439                        col = mods->max_keypermod;
3440                      break;                      break;
3441    
3442                    case XK_Shift_Lock:                    case XK_Shift_Lock:
3443                      /* Ignore this if it's not on the lock modifier.  */                      /* Ignore this if it's not on the lock modifier.  */
3444                      if ((1 << row) == LockMask)                      if (!found_alt_or_meta && ((1 << row) == LockMask))
3445                        dpyinfo->shift_lock_mask = LockMask;                        dpyinfo->shift_lock_mask = LockMask;
3446                        code_col = syms_per_code;
3447                        col = mods->max_keypermod;
3448                      break;                      break;
3449                    }                    }
3450                }                }
3451            }            }
3452          }          }
3453        }
3454    }    }
3455    
3456    /* If we couldn't find any meta keys, accept any alt keys as meta keys.  */    /* If we couldn't find any meta keys, accept any alt keys as meta keys.  */
# Line 5052  XTset_vertical_scroll_bar (w, portion, w Line 5064  XTset_vertical_scroll_bar (w, portion, w
5064    /* Compute the left edge of the scroll bar.  */    /* Compute the left edge of the scroll bar.  */
5065  #ifdef USE_TOOLKIT_SCROLL_BARS  #ifdef USE_TOOLKIT_SCROLL_BARS
5066    if (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT (w))    if (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT (w))
5067      sb_left = left + width - sb_width - (width - sb_width) / 2;      sb_left = (left +
5068    else                 (WINDOW_RIGHTMOST_P (w)
5069      sb_left = left + (width - sb_width) / 2;                  ? width - sb_width - (width - sb_width) / 2
5070                    : 0));
5071      else
5072        sb_left = (left +
5073                   (WINDOW_LEFTMOST_P (w)
5074                    ? (width - sb_width) / 2
5075                    : width - sb_width));
5076  #else  #else
5077    if (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT (w))    if (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT (w))
5078      sb_left = left + width - sb_width;      sb_left = left + width - sb_width;
# Line 5107  XTset_vertical_scroll_bar (w, portion, w Line 5125  XTset_vertical_scroll_bar (w, portion, w
5125                                   width);                                   width);
5126  #else /* not USE_GTK */  #else /* not USE_GTK */
5127    
       /* Since toolkit scroll bars are smaller than the space reserved  
          for them on the frame, we have to clear "under" them.  */  
       if (width > 0 && height > 0)  
         x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),  
                           left, top, width, height, False);  
5128        /* Move/size the scroll bar widget.  */        /* Move/size the scroll bar widget.  */
5129        if (mask)        if (mask)
5130            {
5131              /* Since toolkit scroll bars are smaller than the space reserved
5132                 for them on the frame, we have to clear "under" them.  */
5133              if (width > 0 && height > 0)
5134                x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
5135                              left, top, width, height, False);
5136            XtConfigureWidget (SCROLL_BAR_X_WIDGET (FRAME_X_DISPLAY (f), bar),            XtConfigureWidget (SCROLL_BAR_X_WIDGET (FRAME_X_DISPLAY (f), bar),
5137                               sb_left + VERTICAL_SCROLL_BAR_WIDTH_TRIM,                               sb_left + VERTICAL_SCROLL_BAR_WIDTH_TRIM,
5138                               top,                               top,
5139                               sb_width - VERTICAL_SCROLL_BAR_WIDTH_TRIM * 2,                               sb_width - VERTICAL_SCROLL_BAR_WIDTH_TRIM * 2,
5140                               max (height, 1), 0);                               max (height, 1), 0);
5141            }
5142  #endif /* not USE_GTK */  #endif /* not USE_GTK */
5143  #else /* not USE_TOOLKIT_SCROLL_BARS */  #else /* not USE_TOOLKIT_SCROLL_BARS */
5144    
# Line 10918  static struct redisplay_interface x_redi Line 10937  static struct redisplay_interface x_redi
10937    x_update_window_end,    x_update_window_end,
10938    x_cursor_to,    x_cursor_to,
10939    x_flush,    x_flush,
10940  #ifndef XFlush  #ifdef XFlush
10941    x_flush,    x_flush,
10942  #else  #else
10943    0,  /* flush_display_optional */    0,  /* flush_display_optional */

Legend:
Removed from v.1.804.2.14  
changed lines
  Added in v.1.804.2.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26