aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorMiles Bader2007-11-11 00:56:44 +0000
committerMiles Bader2007-11-11 00:56:44 +0000
commitf23d76bdefbd4c06e14d69e99e50d35ce91c8226 (patch)
treeded28d1da6df2d0135514bac83074f4ca1c9099a /src/xterm.c
parente2d092da5980a7d05a5428074f8eb4925fa801e8 (diff)
parenta457417ee5ba797ab1c91d35ee957bb7a7f8d4b6 (diff)
downloademacs-f23d76bdefbd4c06e14d69e99e50d35ce91c8226.tar.gz
emacs-f23d76bdefbd4c06e14d69e99e50d35ce91c8226.zip
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-283
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c65
1 files changed, 0 insertions, 65 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 9af6060d167..7d20e9bd48f 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2754,7 +2754,6 @@ x_draw_stretch_glyph_string (s)
2754 struct glyph_string *s; 2754 struct glyph_string *s;
2755{ 2755{
2756 xassert (s->first_glyph->type == STRETCH_GLYPH); 2756 xassert (s->first_glyph->type == STRETCH_GLYPH);
2757 s->stippled_p = s->face->stipple != 0;
2758 2757
2759 if (s->hl == DRAW_CURSOR 2758 if (s->hl == DRAW_CURSOR
2760 && !x_stretch_cursor_p) 2759 && !x_stretch_cursor_p)
@@ -3688,12 +3687,7 @@ x_find_modifier_meanings (dpyinfo)
3688 dpyinfo->super_mod_mask = 0; 3687 dpyinfo->super_mod_mask = 0;
3689 dpyinfo->hyper_mod_mask = 0; 3688 dpyinfo->hyper_mod_mask = 0;
3690 3689
3691#ifdef HAVE_X11R4
3692 XDisplayKeycodes (dpyinfo->display, &min_code, &max_code); 3690 XDisplayKeycodes (dpyinfo->display, &min_code, &max_code);
3693#else
3694 min_code = dpyinfo->display->min_keycode;
3695 max_code = dpyinfo->display->max_keycode;
3696#endif
3697 3691
3698 syms = XGetKeyboardMapping (dpyinfo->display, 3692 syms = XGetKeyboardMapping (dpyinfo->display,
3699 min_code, max_code - min_code + 1, 3693 min_code, max_code - min_code + 1,
@@ -6709,14 +6703,6 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
6709 || (orig_keysym & (1 << 28)) 6703 || (orig_keysym & (1 << 28))
6710 || (keysym != NoSymbol && nbytes == 0)) 6704 || (keysym != NoSymbol && nbytes == 0))
6711 && ! (IsModifierKey (orig_keysym) 6705 && ! (IsModifierKey (orig_keysym)
6712#ifndef HAVE_X11R5
6713#ifdef XK_Mode_switch
6714 || ((unsigned)(orig_keysym) == XK_Mode_switch)
6715#endif
6716#ifdef XK_Num_Lock
6717 || ((unsigned)(orig_keysym) == XK_Num_Lock)
6718#endif
6719#endif /* not HAVE_X11R5 */
6720 /* The symbols from XK_ISO_Lock 6706 /* The symbols from XK_ISO_Lock
6721 to XK_ISO_Last_Group_Lock 6707 to XK_ISO_Last_Group_Lock
6722 don't have real modifiers but 6708 don't have real modifiers but
@@ -7806,7 +7792,6 @@ x_text_icon (f, icon_name)
7806 if (FRAME_X_WINDOW (f) == 0) 7792 if (FRAME_X_WINDOW (f) == 0)
7807 return 1; 7793 return 1;
7808 7794
7809#ifdef HAVE_X11R4
7810 { 7795 {
7811 XTextProperty text; 7796 XTextProperty text;
7812 text.value = (unsigned char *) icon_name; 7797 text.value = (unsigned char *) icon_name;
@@ -7815,9 +7800,6 @@ x_text_icon (f, icon_name)
7815 text.nitems = strlen (icon_name); 7800 text.nitems = strlen (icon_name);
7816 XSetWMIconName (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), &text); 7801 XSetWMIconName (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), &text);
7817 } 7802 }
7818#else /* not HAVE_X11R4 */
7819 XSetIconName (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), icon_name);
7820#endif /* not HAVE_X11R4 */
7821 7803
7822 if (f->output_data.x->icon_bitmap > 0) 7804 if (f->output_data.x->icon_bitmap > 0)
7823 x_destroy_bitmap (f, f->output_data.x->icon_bitmap); 7805 x_destroy_bitmap (f, f->output_data.x->icon_bitmap);
@@ -9505,7 +9487,6 @@ x_make_frame_invisible (f)
9505 else 9487 else
9506#endif 9488#endif
9507 { 9489 {
9508#ifdef HAVE_X11R4
9509 9490
9510 if (! XWithdrawWindow (FRAME_X_DISPLAY (f), window, 9491 if (! XWithdrawWindow (FRAME_X_DISPLAY (f), window,
9511 DefaultScreen (FRAME_X_DISPLAY (f)))) 9492 DefaultScreen (FRAME_X_DISPLAY (f))))
@@ -9513,31 +9494,6 @@ x_make_frame_invisible (f)
9513 UNBLOCK_INPUT_RESIGNAL; 9494 UNBLOCK_INPUT_RESIGNAL;
9514 error ("Can't notify window manager of window withdrawal"); 9495 error ("Can't notify window manager of window withdrawal");
9515 } 9496 }
9516#else /* ! defined (HAVE_X11R4) */
9517
9518 /* Tell the window manager what we're going to do. */
9519 if (! EQ (Vx_no_window_manager, Qt))
9520 {
9521 XEvent unmap;
9522
9523 unmap.xunmap.type = UnmapNotify;
9524 unmap.xunmap.window = window;
9525 unmap.xunmap.event = DefaultRootWindow (FRAME_X_DISPLAY (f));
9526 unmap.xunmap.from_configure = False;
9527 if (! XSendEvent (FRAME_X_DISPLAY (f),
9528 DefaultRootWindow (FRAME_X_DISPLAY (f)),
9529 False,
9530 SubstructureRedirectMaskSubstructureNotifyMask,
9531 &unmap))
9532 {
9533 UNBLOCK_INPUT_RESIGNAL;
9534 error ("Can't notify window manager of withdrawal");
9535 }
9536 }
9537
9538 /* Unmap the window ourselves. Cheeky! */
9539 XUnmapWindow (FRAME_X_DISPLAY (f), window);
9540#endif /* ! defined (HAVE_X11R4) */
9541 } 9497 }
9542 9498
9543 /* We can't distinguish this from iconification 9499 /* We can't distinguish this from iconification
@@ -9903,16 +9859,11 @@ x_wm_set_size_hint (f, flags, user_position)
9903 them; otherwise, we set the min_width and min_height members 9859 them; otherwise, we set the min_width and min_height members
9904 to the size for a zero x zero frame. */ 9860 to the size for a zero x zero frame. */
9905 9861
9906#ifdef HAVE_X11R4
9907 size_hints.flags |= PBaseSize; 9862 size_hints.flags |= PBaseSize;
9908 size_hints.base_width = base_width; 9863 size_hints.base_width = base_width;
9909 size_hints.base_height = base_height; 9864 size_hints.base_height = base_height;
9910 size_hints.min_width = base_width + min_cols * size_hints.width_inc; 9865 size_hints.min_width = base_width + min_cols * size_hints.width_inc;
9911 size_hints.min_height = base_height + min_rows * size_hints.height_inc; 9866 size_hints.min_height = base_height + min_rows * size_hints.height_inc;
9912#else
9913 size_hints.min_width = base_width;
9914 size_hints.min_height = base_height;
9915#endif
9916 } 9867 }
9917 9868
9918 /* If we don't need the old flags, we don't need the old hint at all. */ 9869 /* If we don't need the old flags, we don't need the old hint at all. */
@@ -9928,12 +9879,8 @@ x_wm_set_size_hint (f, flags, user_position)
9928 long supplied_return; 9879 long supplied_return;
9929 int value; 9880 int value;
9930 9881
9931#ifdef HAVE_X11R4
9932 value = XGetWMNormalHints (FRAME_X_DISPLAY (f), window, &hints, 9882 value = XGetWMNormalHints (FRAME_X_DISPLAY (f), window, &hints,
9933 &supplied_return); 9883 &supplied_return);
9934#else
9935 value = XGetNormalHints (FRAME_X_DISPLAY (f), window, &hints);
9936#endif
9937 9884
9938#ifdef USE_X_TOOLKIT 9885#ifdef USE_X_TOOLKIT
9939 size_hints.base_height = hints.base_height; 9886 size_hints.base_height = hints.base_height;
@@ -9974,11 +9921,7 @@ x_wm_set_size_hint (f, flags, user_position)
9974 } 9921 }
9975#endif /* PWinGravity */ 9922#endif /* PWinGravity */
9976 9923
9977#ifdef HAVE_X11R4
9978 XSetWMNormalHints (FRAME_X_DISPLAY (f), window, &size_hints); 9924 XSetWMNormalHints (FRAME_X_DISPLAY (f), window, &size_hints);
9979#else
9980 XSetNormalHints (FRAME_X_DISPLAY (f), window, &size_hints);
9981#endif
9982} 9925}
9983#endif /* not USE_GTK */ 9926#endif /* not USE_GTK */
9984 9927
@@ -11138,9 +11081,7 @@ x_term_init (display_name, xrm_option, resource_name)
11138 argv[argc++] = "--name"; 11081 argv[argc++] = "--name";
11139 argv[argc++] = resource_name; 11082 argv[argc++] = resource_name;
11140 11083
11141#ifdef HAVE_X11R5
11142 XSetLocaleModifiers (""); 11084 XSetLocaleModifiers ("");
11143#endif
11144 11085
11145 gtk_init (&argc, &argv2); 11086 gtk_init (&argc, &argv2);
11146 11087
@@ -11205,9 +11146,7 @@ x_term_init (display_name, xrm_option, resource_name)
11205 } 11146 }
11206 11147
11207#else /* not USE_X_TOOLKIT */ 11148#else /* not USE_X_TOOLKIT */
11208#ifdef HAVE_X11R5
11209 XSetLocaleModifiers (""); 11149 XSetLocaleModifiers ("");
11210#endif
11211 dpy = XOpenDisplay (SDATA (display_name)); 11150 dpy = XOpenDisplay (SDATA (display_name));
11212#endif /* not USE_X_TOOLKIT */ 11151#endif /* not USE_X_TOOLKIT */
11213#endif /* not USE_GTK*/ 11152#endif /* not USE_GTK*/
@@ -11518,9 +11457,6 @@ x_term_init (display_name, xrm_option, resource_name)
11518#endif /* ! defined (SIGIO) */ 11457#endif /* ! defined (SIGIO) */
11519 11458
11520#ifdef USE_LUCID 11459#ifdef USE_LUCID
11521#ifdef HAVE_X11R5 /* It seems X11R4 lacks XtCvtStringToFont, and XPointer. */
11522 /* Make sure that we have a valid font for dialog boxes
11523 so that Xt does not crash. */
11524 { 11460 {
11525 Display *dpy = dpyinfo->display; 11461 Display *dpy = dpyinfo->display;
11526 XrmValue d, fr, to; 11462 XrmValue d, fr, to;
@@ -11540,7 +11476,6 @@ x_term_init (display_name, xrm_option, resource_name)
11540 x_uncatch_errors (); 11476 x_uncatch_errors ();
11541 } 11477 }
11542#endif 11478#endif
11543#endif
11544 11479
11545 /* See if we should run in synchronous mode. This is useful 11480 /* See if we should run in synchronous mode. This is useful
11546 for debugging X code. */ 11481 for debugging X code. */