Mercurial > emacs
comparison src/xterm.c @ 727:540b047ece4d
*** empty log message ***
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Wed, 24 Jun 1992 05:09:26 +0000 |
parents | 030fb4635335 |
children | a8d94735277e |
comparison
equal
deleted
inserted
replaced
726:5f08efa38dd0 | 727:540b047ece4d |
---|---|
1993 || IsKeypadKey (keysym) /* 0xff80 <= x < 0xffbe */ | 1993 || IsKeypadKey (keysym) /* 0xff80 <= x < 0xffbe */ |
1994 || IsFunctionKey (keysym)) /* 0xffbe <= x < 0xffe1 */ | 1994 || IsFunctionKey (keysym)) /* 0xffbe <= x < 0xffe1 */ |
1995 { | 1995 { |
1996 bufp->kind = non_ascii_keystroke; | 1996 bufp->kind = non_ascii_keystroke; |
1997 XSET (bufp->code, Lisp_Int, (unsigned) keysym - 0xff50); | 1997 XSET (bufp->code, Lisp_Int, (unsigned) keysym - 0xff50); |
1998 bufp->screen = XSCREEN (SCREEN_FOCUS_SCREEN (s)); | 1998 bufp->screen = s; |
1999 bufp->modifiers = x_convert_modifiers (modifiers); | 1999 bufp->modifiers = x_convert_modifiers (modifiers); |
2000 bufp->timestamp = event.xkey.time; | 2000 bufp->timestamp = event.xkey.time; |
2001 bufp++; | 2001 bufp++; |
2002 count++; | 2002 count++; |
2003 numchars--; | 2003 numchars--; |
2010 { | 2010 { |
2011 if (modifiers & Mod1Mask) | 2011 if (modifiers & Mod1Mask) |
2012 *copy_buffer |= METABIT; | 2012 *copy_buffer |= METABIT; |
2013 bufp->kind = ascii_keystroke; | 2013 bufp->kind = ascii_keystroke; |
2014 XSET (bufp->code, Lisp_Int, *copy_buffer); | 2014 XSET (bufp->code, Lisp_Int, *copy_buffer); |
2015 bufp->screen = XSCREEN (SCREEN_FOCUS_SCREEN (s)); | 2015 bufp->screen = s; |
2016 bufp->timestamp = event.xkey.time; | 2016 bufp->timestamp = event.xkey.time; |
2017 bufp++; | 2017 bufp++; |
2018 } | 2018 } |
2019 else | 2019 else |
2020 for (i = nbytes - 1; i > 1; i--) | 2020 for (i = nbytes - 1; i > 1; i--) |
2021 { | 2021 { |
2022 bufp->kind = ascii_keystroke; | 2022 bufp->kind = ascii_keystroke; |
2023 XSET (bufp->code, Lisp_Int, copy_buffer[i]); | 2023 XSET (bufp->code, Lisp_Int, copy_buffer[i]); |
2024 bufp->screen = XSCREEN (SCREEN_FOCUS_SCREEN (s)); | 2024 bufp->screen = s; |
2025 bufp->timestamp = event.xkey.time; | 2025 bufp->timestamp = event.xkey.time; |
2026 bufp++; | 2026 bufp++; |
2027 } | 2027 } |
2028 | 2028 |
2029 count += nbytes; | 2029 count += nbytes; |
2069 for (i = 0; i < nbytes; i++) | 2069 for (i = 0; i < nbytes; i++) |
2070 { | 2070 { |
2071 bufp->kind = ascii_keystroke; | 2071 bufp->kind = ascii_keystroke; |
2072 XSET (bufp->code, Lisp_Int, where_mapping[i]); | 2072 XSET (bufp->code, Lisp_Int, where_mapping[i]); |
2073 XSET (bufp->time, Lisp_Int, event.xkey.time); | 2073 XSET (bufp->time, Lisp_Int, event.xkey.time); |
2074 bufp->screen = XSCREEN (SCREEN_FOCUS_SCREEN (s)); | 2074 bufp->screen = s; |
2075 bufp++; | 2075 bufp++; |
2076 } | 2076 } |
2077 count += nbytes; | 2077 count += nbytes; |
2078 numchars -= nbytes; | 2078 numchars -= nbytes; |
2079 } | 2079 } |
2306 enqueue_event (&event, &x_mouse_queue); | 2306 enqueue_event (&event, &x_mouse_queue); |
2307 if (numchars >= 2) | 2307 if (numchars >= 2) |
2308 { | 2308 { |
2309 bufp->kind = ascii_keystroke; | 2309 bufp->kind = ascii_keystroke; |
2310 bufp->code = (char) 'X' & 037; /* C-x */ | 2310 bufp->code = (char) 'X' & 037; /* C-x */ |
2311 bufp->screen = XSCREEN (SCREEN_FOCUS_SCREEN (s)); | 2311 bufp->screen = s; |
2312 XSET (bufp->time, Lisp_Int, event.xkey.time); | 2312 XSET (bufp->time, Lisp_Int, event.xkey.time); |
2313 bufp++; | 2313 bufp++; |
2314 | 2314 |
2315 bufp->kind = ascii_keystroke; | 2315 bufp->kind = ascii_keystroke; |
2316 bufp->code = (char) 0; /* C-@ */ | 2316 bufp->code = (char) 0; /* C-@ */ |
2317 bufp->screen = XSCREEN (SCREEN_FOCUS_SCREEN (s)); | 2317 bufp->screen = s; |
2318 XSET (bufp->time, Lisp_Int, event.xkey.time); | 2318 XSET (bufp->time, Lisp_Int, event.xkey.time); |
2319 bufp++; | 2319 bufp++; |
2320 | 2320 |
2321 count += 2; | 2321 count += 2; |
2322 numchars -= 2; | 2322 numchars -= 2; |
3604 { | 3604 { |
3605 XSizeHints size_hints; | 3605 XSizeHints size_hints; |
3606 Window window = s->display.x->window_desc; | 3606 Window window = s->display.x->window_desc; |
3607 | 3607 |
3608 size_hints.flags = PResizeInc | PMinSize | PMaxSize; | 3608 size_hints.flags = PResizeInc | PMinSize | PMaxSize; |
3609 #ifdef PBaseSize | |
3610 size_hints.flags |= PBaseSize; | |
3611 #endif | |
3609 | 3612 |
3610 flexlines = s->height; | 3613 flexlines = s->height; |
3611 | 3614 |
3612 size_hints.x = s->display.x->left_pos; | 3615 size_hints.x = s->display.x->left_pos; |
3613 size_hints.y = s->display.x->top_pos; | 3616 size_hints.y = s->display.x->top_pos; |