aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
Commit message (Collapse)AuthorAgeFilesLines
* (x_wm_set_size_hint): Use x_display_pixel_width and x_display_pixel_height.Eli Zaretskii2008-09-191-4/+4
|
* (x_display_pixel_height, x_display_pixel_width): New functions.Chong Yidong2008-09-181-6/+19
| | | | | (x_calc_absolute_position): Use them. (x_term_init): Omit removed `height' and `width' members.
* (x_delete_display): Fix merge error.Andreas Schwab2008-09-021-1/+0
|
* Merge from emacs--rel--22Miles Bader2008-09-021-0/+1
|\ | | | | | | Revision: [email protected]/emacs--devo--0--patch-1398
| * (x_delete_display): Don't call XrmDestroyDatabase on GTK+.Chong Yidong2008-08-211-1/+2
| |
| * (handle_one_xevent): Don't pass buttons higher than 3Jan Djärv2008-05-131-0/+2
| | | | | | | | to Gtk+ menus.
| * (x_set_offset): Don't change the gravity if CHANGE_GRAVITY is -1.Chong Yidong2008-02-241-1/+1
| |
* | (x_draw_composite_glyph_string_foreground): Adjusted forKenichi Handa2008-08-291-42/+37
| | | | | | | | | | the change of struct glyph_string. (x_draw_glyph_string): Likewise.
* | (x_term_init): Temporarily hide the partially initialized terminalChong Yidong2008-08-271-0/+4
| | | | | | | | while calling vendor-specific-keysyms.
* | (x_delete_display): Don't call XrmDestroyDatabase on GTK+.Chong Yidong2008-08-211-1/+2
| |
* | * s/ms-w32.h (MULTI_KBOARD): Remove.Dan Nicolaescu2008-07-311-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xterm.c: * xselect.c: * xfns.c: * window.c: * w32term.c: * w32fns.c: * terminal.c: * termhooks.h: * term.c: * sysdep.c: * keyboard.h: * keyboard.c: * frame.h: * frame.c: * frame.c: Remove references to MULTI_KBOARD, it is now the default. * config.in: Regenerate. * config.nt (MULTI_KBOARD): Remove. * configure.in (MULTI_KBOARD): Remove.
* | * fontset.h: Declare fontset_from_font. Don't declareAndreas Schwab2008-07-081-0/+1
| | | | | | | | | | | | new_fontset_from_font and fontset_from_font_name. * xterm.c: Include "fontset.h". * Makefile.in (xterm.o): Update dependencies.
* | (x_set_frame_alpha): Add x_catch_errors for bug#437.Stefan Monnier2008-06-221-6/+12
| |
* | * xdisp.c (underline_minimum_offset): Rename from xterm.c'sStefan Monnier2008-06-101-20/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | x_underline_minimum_display_offset. (syms_of_xdisp): Declare it here rather than in xterm.c. * dispextern.h (underline_minimum_offset): Declare it. * w32term.c (x_draw_glyph_string): Use it. * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c. (syms_of_xterm): Don't declare it any more. (x_draw_glyph_string): Adjust to the new name. * cus-start.el (underline-minimum-offset) Rename from x-underline-minimum-display-offset.
* | * xterm.c (x_underline_minimum_display_offset): New var.Stefan Monnier2008-06-101-1/+21
| | | | | | | | | | | | (x_draw_glyph_string): Use it. (syms_of_xterm): Declare it. * cus-start.el (x-underline-minimum-display-offset): Give it a type.
* | Make "xfree (NULL)" a no-op; remove useless if-before-xfree.Jim Meyering2008-06-021-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/alloc.c (xfree): Return right away for a NULL arg. * src/lread.c (nosuffix): Remove now-useless if-before-xfree tests. * src/gtkutil.c (xg_gtk_scroll_destroy): Likewise. * src/mac.c (create_apple_event_from_event_ref): Likewise. (create_apple_event_from_drag_ref, cfstring_create_normalized): Likewise. * src/doprnt.c (doprnt1): Likewise. * src/frame.c (frame): Likewise. * src/keyboard.c (wipe_kboard): Likewise. * src/macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap): (init_font_name_table, mac_unload_font, x_delete_display): Likewise. * src/term.c (tty_default_color_capabilities, maybe_fatal) (delete_tty): Likewise. * src/w16select.c (string): Likewise. * src/w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise. * src/w32bdf.c (w32_free_bdf_font): Likewise. * src/w32fns.c (w32_unload_font): Likewise. * src/w32font.c (w32font_close): Likewise. * src/window.c (size_window): Likewise. * src/xselect.c (receive_incremental_selection): Likewise. * src/xterm.c (x_free_frame_resources, x_delete_display): Likewise. * src/mactoolbox.c (create_apple_event_from_drag_ref): Likewise. * src/w32.c (stat): Likewise.
* | (x_draw_glyph_string): If a clipmask is specified, use it.Chong Yidong2008-05-271-2/+4
| |
* | (x_set_frame_alpha): Fix type mismatch.Andreas Schwab2008-05-261-6/+6
| |
* | (x_draw_glyph_string): Fix calculation of underlineKenichi Handa2008-05-251-2/+2
| | | | | | | | position.
* | (x_draw_glyph_string): Be sure to draw underline within the currentKenichi Handa2008-05-231-0/+6
| | | | | | | | line area.
* | (x_draw_glyph_string): Be sure to updateKenichi Handa2008-05-231-2/+2
| | | | | | | | s->underline_thickness and s->underline_position.
* | (x_set_frame_alpha): Move declarations beforeDan Nicolaescu2008-05-211-6/+6
| | | | | | | | statements.
* | Seiji Zenitani <zenitani at mac.com>Glenn Morris2008-05-211-0/+63
| | | | | | | | | | | | Ryo Yoshitake <ryo at shiftmode.net> (x_set_frame_alpha): Add function.
* | Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-141-6/+4
| |
* | Throughout the file, delete all USE_FONT_BACKENDKenichi Handa2008-05-141-1385/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | conditionals. Don't check enable_font_backend. Delete all codes used only when USE_FONT_BACKEND is not defined. Don't include ccl.h. (x_per_char_metric, x_encode_char): Deleted. (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont. (x_compute_glyph_string_overhangs): Adjusted for the change of `struct face' (x_draw_glyph_string_foreground) (x_draw_composite_glyph_string_foreground): Likewise. (x_draw_glyph_string): Likewise. Use font->underline_position and font->underline_thickness. (x_new_font): Renamed from x_new_fontset2. (x_new_fontset, x_get_font_info, x_list_fonts): Deleted. (x_check_font): Call `check' method of a font driver. (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font) (x_query_font, x_get_font_repertory): Deleted. (x_find_ccl_program): Renamed and moved to xfont.c. (x_redisplay_interface): Adjusted for the change of `struct redisplay_interface'.
* | (handle_one_xevent): Don't pass buttons higher than 3Jan Djärv2008-05-131-0/+2
| | | | | | | | to Gtk+ menus.
* | (XTread_socket): Fix use of uninitialized variable.Andreas Schwab2008-04-271-1/+3
| |
* | * keyboard.c (pending_funcalls): New var.Stefan Monnier2008-03-291-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (timer_check): Run it. (syms_of_keyboard): Initialize it. * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions) (Vdelete_terminal_functions): New vars. (syms_of_terminal): Initialize them. (Fdelete_terminal): Run delete-terminal-functions. * xdisp.c (safe_eval): Rewrite. (safe_call2): New fun. * frame.c (Qdelete_frame_functions): New var. (syms_of_frame): Initialize it. (Fdelete_frame): Use it and use safe_call2 and pending_funcalls. * lisp.h (safe_call2, pending_funcalls): Declare.
* | Fix previous change.Jan Djärv2008-03-111-1/+1
| |
* | (x_connection_closed): For GTK: If this is the lastJan Djärv2008-03-111-1/+9
| | | | | | | | terminal just exit without closing the display.
* | * w32term.c: Remove unused include "gnu.h".Dan Nicolaescu2008-03-031-1/+1
| | | | | | | | | | | | | | | | | | * makefile.w32-in (w32term.o): Don't depend on gnu.h * gnu.h: Rename to ... * emacs-icon.h: ... this. * xterm.c: Use emacs-icon.h instead of gnu.h. * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
* | (handle_one_xevent): For Gtk+ and ConfigureNotify, callJan Djärv2008-03-011-6/+13
| | | | | | | | xg_frame_resized when the event is for the edit widget.
* | (x_set_offset): Don't change the gravity if CHANGE_GRAVITY is -1.Chong Yidong2008-02-241-1/+1
| |
* | Consolidate the image_cache to the terminal struct.Stefan Monnier2008-02-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * termhooks.h (P_): Remove redundant def. (struct terminal): New field `image_cache'. * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place of FRAME_X_IMAGE_CACHE. * xterm.h (struct x_display_info): Remove image_cache field. (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. * w32term.h (struct w32_display_info): Remove image_cache field. (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. * macterm.h (struct mac_display_info): Remove image_cache field. (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead. * xterm.c (x_term_init): * w32term.c (w32_term_init): * macterm.c (mac_term_init): Set the image_cache in the terminal. * dispextern.h (clear_image_cache, forall_images_in_image_cache): Remove declarations. (clear_image_caches, mark_image_cache): New declarations. * xfaces.c (clear_face_cache): * xdisp.c (redisplay_internal): Use clear_image_caches. * image.c (clear_image_cache): Don't check that a frame is on a window-system before checking if it shares the same cache. (clear_image_caches): New function. (Fclear_image_cache): Use it. (mark_image): Move from allo.c. (mark_image_cache): Move from alloc.c and forall_images_in_image_cache. * alloc.c (mark_image, mark_image_cache): Move to image.c. (mark_object): Don't call mark_image_cache for frames. (mark_terminals): Call mark_image_cache.
* | (x_connection_closed): Consolidate identical tests.Stefan Monnier2008-02-211-26/+29
| | | | | | | | (x_delete_terminal): Don't crash if called via x_connection_closed.
* | (x_set_cursor_gc): Use display_info->font->fid for GCs.Kenichi Handa2008-02-171-7/+31
| | | | | | | | | | | | (x_set_mouse_face_gc, x_new_font): Likewise. (x_term_init): Setup display_info->font. (x_delete_terminal): Free display_info->font.
* | * frame.c (Qnoelisp): New symbol.Stefan Monnier2008-02-101-3/+3
| | | | | | | | | | | | | | | | (syms_of_frame): Initialize it. (Fdelete_frame): Use it to distinguish a mere `force' passed from someharmles Elisp code, from a strong `force' from x_connection_closed. * frame.h (Qnoelisp): Declare. * xterm.c (x_connection_closed): Pass `noelisp'.
* | * configure.in (LIBX11_MACHINE, HAVE_XFREE386): Remove codeDan Nicolaescu2008-02-091-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dealing with obsolete variables. * fakemail.c (MAIL_PROGRAM_NAME): Remove unused conditional. (main): Replace MAIL_PROGRAM_NAME with its value. * src/Makefile.in: * src/emacs.c: * src/gmalloc.c: * src/keyboard.c: * src/lisp.h: * src/m/ibm370aix.h: * src/process.c: * src/regex.c: * src/s/hpux.h: * src/sysdep.c: * src/sysselect.h: * src/systty.h: * src/unexec.c: * src/w32term.c: * src/xsmfns.c: * src/xterm.c: Remove code that deals with obsolete variables. * s/msdos.h (DONT_NEED_ENVIRON): Don't define. * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test, nothing else needs it anymore.
* | (x_detect_focus_change): Handle embed client message.Jan Djärv2008-02-071-5/+94
| | | | | | | | | | | | | | | | | | | | | | | | (handle_one_xevent): Ditto. (handle_one_xevent): If embedded and we get a button press/release, request focus. (xembed_set_info, xembed_send_message): New functions. (x_make_frame_visible): Call xembed_set_info if embedded. (x_make_frame_invisible): Call xembed_set_info if embedded. (x_term_init): Initialize Xatom_XEMBED. (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also. (x_iconify_frame): Ditto.
* | Merge from emacs--devo--0Miles Bader2008-01-301-4/+4
|\ \ | | | | | | | | | Revision: [email protected]/emacs--unicode--0--patch-324
| * | Merge from emacs--rel--22Miles Bader2008-01-221-4/+4
| |\| | | | | | | | | | Revision: [email protected]/emacs--devo--0--patch-1006
| | * (handle_one_xevent): Revert to counting chars not bytes.Jason Rumney2008-01-171-4/+4
| | | | | | | | | | | | (XTread_socket): Clarify what return value is counting in comment.
* | | Merge from emacs--devo--0Miles Bader2008-01-091-1/+2
|\| | | | | | | | | | | Revision: [email protected]/emacs--unicode--0--patch-312
| * | Merge from emacs--rel--22Miles Bader2008-01-081-1/+2
| |\| | | | | | | | | | Revision: [email protected]/emacs--devo--0--patch-987
| | * Add 2008 to copyright years.Glenn Morris2008-01-081-1/+2
| | |
| | * Johan Bockg� <bojohan at gnu.org>Glenn Morris2007-11-011-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | (x_draw_stretch_glyph_string): Don't set s->stippled_p here, since it has already been set by x_set_glyph_string_gc from x_draw_glyph_string. http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01571.html
* | | (x_check_font) [USE_FONT_BACKEND]: Don't accessKenichi Handa2007-12-141-0/+16
| | | | | | | | | | | | | | | | | | dpyinfo->font_table. (x_delete_display) [USE_FONT_BACKEND]: Likewise. (x_delete_terminal) [USE_FONT_BACKEND]: Likewise
* | | Merge from emacs--devo--0Miles Bader2007-12-061-77/+75
|\| | | | | | | | | | | Revision: [email protected]/emacs--unicode--0--patch-294
| * | Update URL to Window Manager Specification in comment.Jan Djärv2007-12-031-2/+2
| | |
| * | (x_scroll_bar_set_handle, x_scroll_bar_handle_click)Jan Djärv2007-11-181-14/+14
| | | | | | | | | | | | | | | (x_scroll_bar_note_movement): start, end, with, height in struct scroll_bar are integers and not Lisp_Object, so remove XINT for them.