1. 11 Nov, 2009 1 commit
  2. 06 Nov, 2009 2 commits
    • Jan Djärv's avatar
      Fix bug #4870, issues 3 and 4. · e511451f
      Jan Djärv authored
      * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
      
      * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
      
      * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
      ButtonPressRelease and MotionNotify (bug#4870).
      e511451f
    • Dan Nicolaescu's avatar
      * xterm.c (syms_of_xterm): · d67b4f80
      Dan Nicolaescu authored
      * xselect.c (syms_of_xselect):
      * xmenu.c (syms_of_xmenu):
      * xfns.c (syms_of_xfns):
      * xfaces.c (syms_of_xfaces):
      * xdisp.c (syms_of_xdisp):
      * window.c (syms_of_window):
      * w32fns.c (syms_of_w32fns):
      * undo.c (syms_of_undo):
      * textprop.c (syms_of_textprop):
      * terminal.c (syms_of_terminal):
      * syntax.c (syms_of_syntax):
      * sound.c (syms_of_sound):
      * search.c (syms_of_search):
      * print.c (syms_of_print):
      * minibuf.c (syms_of_minibuf):
      * macros.c (syms_of_macros):
      * keymap.c (syms_of_keymap, initial_define_key)
      (initial_define_lispy_key):
      * keyboard.c (syms_of_keyboard):
      * insdel.c (syms_of_insdel):
      * image.c (syms_of_image):
      * fringe.c (syms_of_fringe):
      * frame.c (syms_of_frame):
      * fontset.c (syms_of_fontset):
      * fns.c (syms_of_fns):
      * fns.c (syms_of_fns):
      * fileio.c (syms_of_fileio):
      * fileio.c (syms_of_fileio):
      * eval.c (syms_of_eval):
      * doc.c (syms_of_doc):
      * dispnew.c (syms_of_display):
      * dired.c (syms_of_dired):
      * dbusbind.c (syms_of_dbusbind):
      * data.c (syms_of_data):
      * composite.c (syms_of_composite):
      * coding.c (syms_of_coding):
      * cmds.c (syms_of_cmds):
      * charset.c (define_charset_internal, syms_of_character):
      * ccl.c (syms_of_ccl):
      * category.c (syms_of_category, init_category_once):
      * casetab.c (syms_of_casetab):
      * casefiddle.c (syms_of_casefiddle):
      * callint.c (syms_of_callint):
      * bytecode.c (syms_of_bytecode):
      * buffer.c (keys_of_buffer, syms_of_buffer):
      * alloc.c (syms_of_alloc):
      * process.c (syms_of_process, init_process):
      * lread.c (syms_of_lread, init_obarray):
      * font.c (build_style_table):
      * emacs.c (syms_of_emacs, main): Replace calls to intern with
      intern_c_string, calls to make_pure_string with
      make_pure_c_string.  Use pure_cons instead of Fcons.
      
      * process.c (socket_options): Make it const.
      (set_socket_option, init_process): Use a const pointer.
      
      * lread.c (intern_c_string): New function.
      (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
      (defvar_int): Uset it.  Make the name const char*.
      
      * font.c (struct table_entry): Remove unused member.  Make NAMES
      constant.
      (weight_table, slant_table, width_table): Make constant.
      
      * emacs.c (struct standard_args): Make name and longname constant.
      d67b4f80
  3. 21 Oct, 2009 2 commits
    • Jan Djärv's avatar
    • Jan Djärv's avatar
      Fix resize due to font change on a maximized/xmonad-controlled frame. · 5c646d5a
      Jan Djärv authored
      * xterm.h (x_wait_for_event): Declare it.
      
      * xterm.c (pending_event_wait): New variable.
      (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
      see pending_event_wait.eventtype.
      (handle_one_xevent): Don't change gravity when parent changes.
      (x_new_font): Call change_frame_size with new rows/columns before we try
      to resize the frame.
      (x_wait_for_event): New function.
      (x_set_window_size_1): Don't change gravity unless change_gravity is set.
      Call XResizeWindow with FRAME_OUTER_WINDOW.  If we are visible,
      don't change frame size, instead wait for the ConfigureNotify.
      (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
      (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
      (x_initialize): Initialize pending_event_wait.
      
      * xmenu.c (set_frame_menubar): Add internal border width to menu bar
      size.
      
      * widget.c (EmacsFrameSetValues): Add comment.
      (EmacsFrameSetCharSize): Just call x_set_window_size.
      
      * gtkutil.c (xg_frame_set_char_size): Flush events and call
      x_wait_for_event.
      (flush_and_sync): Removed again.
      (xg_get_font_name): Suggest monospace if no previous font is known.
      5c646d5a
  4. 20 Oct, 2009 1 commit
  5. 19 Oct, 2009 3 commits
    • Jan Djärv's avatar
      (x_create_toolkit_scroll_bar): Don't allocate color for · 9685cef2
      Jan Djärv authored
      pixel -1 (bug #4742).
      9685cef2
    • Dan Nicolaescu's avatar
      * xterm.c: · ee6bacd4
      Dan Nicolaescu authored
      * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
      ee6bacd4
    • Dan Nicolaescu's avatar
      * alloc.c: Do not define struct catchtag. · d7306fe6
      Dan Nicolaescu authored
      * eval.c: Move struct catchtag definition ...
      * lisp.h: ... here.
      
      * image.c: Move png.h #include earlier to avoid warnings.
      
      * xterm.c:
      * xsmfns.c:
      * xselect.c:
      * xrdb.c:
      * xmenu.c:
      * xftfont.c:
      * xfont.c:
      * xfns.c:
      * xfaces.c:
      * xdisp.c:
      * window.c:
      * widget.c:
      * w32xfns.c:
      * w32uniscribe.c:
      * w32term.c:
      * w32select.c:
      * w32reg.c:
      * w32proc.c:
      * w32menu.c:
      * w32inevt.c:
      * w32heap.c:
      * w32font.c:
      * w32fns.c:
      * w32console.c:
      * w32.c:
      * w16select.c:
      * vm-limit.c:
      * unexsol.c:
      * unexec.c:
      * unexcw.c:
      * unexaix.c:
      * undo.c:
      * tparam.c:
      * textprop.c:
      * terminfo.c:
      * terminal.c:
      * termcap.c:
      * term.c:
      * syntax.c:
      * sound.c:
      * sheap.c:
      * search.c:
      * scroll.c:
      * region-cache.c:
      * regex.c:
      * ralloc.c:
      * process.c:
      * print.c:
      * msdos.c:
      * minibuf.c:
      * menu.c:
      * marker.c:
      * macros.c:
      * keymap.c:
      * keyboard.c:
      * intervals.c:
      * insdel.c:
      * indent.c:
      * gtkutil.c:
      * ftxfont.c:
      * ftfont.c:
      * fringe.c:
      * frame.c:
      * fontset.c:
      * font.c:
      * fns.c:
      * floatfns.c:
      * filelock.c:
      * fileio.c:
      * emacs.c:
      * editfns.c:
      * dosfns.c:
      * doprnt.c:
      * doc.c:
      * dispnew.c:
      * dired.c:
      * dbusbind.c:
      * data.c:
      * composite.c:
      * coding.c:
      * cmds.c:
      * cm.c:
      * chartab.c:
      * charset.c:
      * character.c:
      * ccl.c:
      * category.c:
      * casetab.c:
      * casefiddle.c:
      * callproc.c:
      * callint.c:
      * bytecode.c:
      * buffer.c:
      * atimer.c: Include setjmp.h.  (Bug#4643)
      
      * xlwmenu.c:
      * lwlib.c:
      * lwlib-utils.c:
      * lwlib-Xm.c:
      * lwlib-Xlw.c:
      * lwlib-Xaw.c: Include setjmp.h.
      d7306fe6
  6. 15 Sep, 2009 1 commit
  7. 04 Sep, 2009 1 commit
  8. 02 Sep, 2009 1 commit
    • Jan Djärv's avatar
      * xterm.h: Rename x_non_menubar_window_to_frame to · a54fa5b7
      Jan Djärv authored
      x_menubar_window_to_frame
      
      * xterm.c: Remove declarations also in xterm.h
      (XTmouse_position): Do not return valid positions
      for clicks in the menubar and the toolbar for Gtk+.
      
      * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
      if the widget for the event has the same top level as a frame,
      return the frame.
      (x_menubar_window_to_frame): Detect menu bar even with Gtk+
      internal windows, bug #4122.
      (x_non_menubar_window_to_frame): Remove.
      a54fa5b7
  9. 25 Aug, 2009 1 commit
  10. 26 Jul, 2009 1 commit
  11. 16 Jul, 2009 1 commit
  12. 07 Jul, 2009 1 commit
  13. 03 Jul, 2009 1 commit
    • Jan Djärv's avatar
      * xterm.h (struct x_display_info): Add invisible_cursor. · e044e4fc
      Jan Djärv authored
      (struct x_output): Add current_cursor.
      
      * xterm.c (XTtoggle_invisible_pointer): New function.
      (x_define_frame_cursor): Don't define cursor if invisible or the
      same as before.  Set current_cursor.
      (x_create_terminal): Set toggle_invisible_pointer_hook.
      
      * xfns.c (make_invisible_cursor): New function.
      (x_set_mouse_color): Call make_invisible_cursor.
      Set current_cursor.
      (x_window): Set current_cursor.
      
      * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
      
      * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
      inserting a character.
      (read_avail_input): Call frame_make_pointer_visible.
      
      * frame.c (Vmake_pointer_invisible): New variable.
      (frame_make_pointer_invisible, frame_make_pointer_visible): New
      functions.
      (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
      
      * frame.h: Declare frame_make_pointer_invisible and
      frame_make_pointer_visible.
      (struct frame): Add pointer_invisible.
      
      * cus-start.el (all): Added make-pointer-invisible.
      e044e4fc
  14. 02 Jul, 2009 1 commit
  15. 01 Jul, 2009 3 commits
    • Jan Djärv's avatar
      * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky · acd51077
      Jan Djärv authored
      * xterm.c (x_handle_net_wm_state): Also look for sticky.
      (x_term_init): Initialize Xatom_net_wm_state_sticky.
      
      * frame.h: Declare Qsticky.
      acd51077
    • Jan Djärv's avatar
      * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky. · cad9ef74
      Jan Djärv authored
      * nsfns.m (ns_frame_parm_handlers): Ditto.
      
      * frame.c: Declare Qsticky.
      (frame_parms): Add sticky.
      
      * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
      
      * xterm.h: Declare x_set_sticky.
      
      * xterm.c (x_set_sticky): New function.
      
      * frame.c: Qmaximized is new.
      (x_set_frame_parameters): Do not handle fullscreen specially.
      Only set width and height if explicitly set.
      (x_set_fullscreen): Handle Qmaximized.
      (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
      (syms_of_frame): Initialize Qmaximized.
      
      * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
      for Expose event. Add call to x_check_fullscreen for MapNotify event.
      Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
      set gravity to NorthWestGravity when USE_GTK.
      (set_wm_state): New function.
      (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
      (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
      (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
      or the case when no window manager is running. That means remove calls
      to x_real_positions and x_fullscreen_adjust.
      cad9ef74
    • Jan Djärv's avatar
      * emacs.c (USAGE3, standard_args): Add -mm and --maximized. · 3f1c6666
      Jan Djärv authored
      * frame.c: Qmaximized is new.
      (x_set_frame_parameters): Do not handle fullscreen specially.
      Only set width and height if explicitly set.
      (x_set_fullscreen): Handle Qmaximized.
      (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
      (syms_of_frame): Initialize Qmaximized.
      
      * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.  Declare
      Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
      
      * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
      for Expose event. Add call to x_check_fullscreen for MapNotify event.
      Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
      set gravity to NorthWestGravity when USE_GTK.
      (set_wm_state): New function.
      (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
      (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
      (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
      or the case when no window manager is running. That means remove calls
      to x_real_positions and x_fullscreen_adjust.
      
      * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
      (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
      flush_and_sync.
      (xg_height_changed): New function.
      (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
      and gtk_window_set_policy.  Set frame gravity after parsing the geometry
      string.
      (xg_update_frame_menubar, free_frame_menubar)
      (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
      (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
      Remove calls to xg_frame_set_char_size.
      
      * startup.el (command-line-x-option-alist): Add -mm and --maximized.
      
      * NEWS: Mention maximized.
      
      * frames.texi (Size Parameters): Mention maximized for fullscreen.
      
      * xresources.texi (Table of Resources): Mention maximized for
      fullscreen.
      
      * cmdargs.texi (Window Size X): -mm/--maximized is new.
      3f1c6666
  16. 28 Jun, 2009 1 commit
    • Chong Yidong's avatar
      * xterm.c (x_update_window_begin, x_new_focus_frame) · 098a1589
      Chong Yidong authored
      (x_scroll_bar_handle_click, handle_one_xevent)
      (handle_one_xevent, XTread_socket, x_focus_on_frame)
      (x_make_frame_visible, x_make_frame_invisible)
      (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
      code chunks that are now obsolete.
      098a1589
  17. 22 Jun, 2009 2 commits
  18. 15 Jun, 2009 1 commit
  19. 11 Jun, 2009 1 commit
  20. 19 May, 2009 1 commit
  21. 02 May, 2009 1 commit
  22. 19 Apr, 2009 1 commit
    • Jason Rumney's avatar
      The following changes fix Bug#3005 for wide glyphs on each platform, · 705af33f
      Jason Rumney authored
      without	reintroducing Bug#1258 for stretch glyphs.
      
      * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
      BAR_CURSOR and HBAR_CURSOR.  Calculate width of HBAR_CURSOR using
      get_phys_cursor_geometry.
      
      * w32term.c (x_draw_bar_cursor):  Limit cursor width differently
      for BAR_CURSOR and HBAR_CURSOR.  Calculate width of HBAR_CURSOR
      using get_phys_cursor_geometry.
      
      * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
      correctly calculated.
      705af33f
  23. 27 Mar, 2009 1 commit
  24. 30 Jan, 2009 1 commit
  25. 29 Jan, 2009 1 commit
  26. 08 Jan, 2009 1 commit
  27. 22 Dec, 2008 1 commit
    • Martin Rudalics's avatar
      * frame.c (delete_frame): New function derived from · 56f2de10
      Martin Rudalics authored
      Fdelete_frame to handle Qnoelisp value for FORCE argument.
      Delete last frame iff FORCE equals Qnoelisp.  (Bug#1450)
      (Fdelete_frame): Call delete_frame.  Remove line from doc-string
      saying that FORCE non-nil doesn't run `delete-frame-functions'.
      * frame.h: Extern delete_frame.
      * window.c (window_loop):
      * terminal.c (delete_terminal):
      * xterm.c (x_connection_closed):
      * xfns.c (Fx_hide_tip):
      * w32fns.c (Fx_hide_tip): Call delete_frame instead of
      Fdelete_frame.
      56f2de10
  28. 15 Dec, 2008 1 commit
  29. 13 Dec, 2008 2 commits
  30. 03 Dec, 2008 1 commit
  31. 15 Nov, 2008 2 commits