1. 22 Feb, 2005 1 commit
    • Elijah Newren's avatar
      Handle keynav vs. mousenav in mouse and sloppy focus modes. Fixes #167545. · 61250726
      Elijah Newren authored
      2005-02-21  Elijah Newren  <newren@gmail.com>
      
      	Handle keynav vs. mousenav in mouse and sloppy focus modes.  Fixes
      	#167545.
      
      	* doc/how-to-get-focus-right.txt: Update due to this new method
      	for handling keynav vs. mousenav, plus various other updates that
      	I previously forgot.
      
      	* src/display.h: (struct _MetaDisplay): add a mouse_mode boolean
      
      	* src/display.c: (meta_display_open): initialize mouse_mode to
      	true, (event_callback): have EnterNotify and LeaveNotify events
      	set mouse_mode to true when focusing a window
      
      	* src/keybindings.c: (process_tab_grab): set mouse_mode to false
      	when using alt-tab/alt-esc, (do_choose_window): likewise,
      	(do_handle_move_to_workspace): set mouse_mode to false on
      	move-window-to-workspace-<n> keybindings
      
      	* src/window.c (idle_calc_showing): if we're in keynav mode while
      	using sloppy or mouse focus, use metacity_sentinel to avoid
      	EnterNotify events being generated from events other than mouse
      	movement.
      
      	* src/workspace.c (meta_workspace_activate_with_focus): add a
      	FIXME in a potentially duplicate section of code,
      	(meta_workspace_focus_default_window): use the same focus choice
      	as click-to-focus if in keynav mode.
      61250726
  2. 02 Feb, 2005 1 commit
    • Elijah Newren's avatar
      Focus parents of dismissed transient windows in preference to the window · de5588c1
      Elijah Newren authored
      2005-02-02  Elijah Newren  <newren@gmail.com>
      
      	Focus parents of dismissed transient windows in preference to the
      	window that most recently had keyboard focus.  Fixes #157360.
      
      	* doc/how-to-get-focus-right.txt: Note the distinction between
      	"most recently used window" and "most recent to have keyboard
      	focus" that we are now making.
      
      	* src/workspace.c: (focus_ancestor_or_mru_window): rename from
      	meta_workspace_focus_mru_window, and first check whether we need
      	to focus an ancestor window before looking for the mru window,
      	(record_ancestor): helper function for
      	focus_ancestor_or_mru_window,
      	(meta_workspace_focus_default_window): update due to the function
      	rename from meta_workspace_focus_mru_window to
      	focus_ancestor_or_mru_window
      de5588c1
  3. 09 Jan, 2005 1 commit
    • Elijah Newren's avatar
      Don't focus the panel on click. Fixes #160470 (and 100470 and removes the · be29c696
      Elijah Newren authored
      2005-01-09  Elijah Newren  <newren@gmail.com>
      
      	Don't focus the panel on click.  Fixes #160470 (and 100470 and
      	removes the need for the hack from 128200)
      
      	* doc/how-to-get-focus-right.txt: Update section on focusing
      	non-decorated windows (specifically, DOCKS and DESKTOPS)
      
      	* src/display.c (event_callback): don't focus dock windows on
      	click
      be29c696
  4. 15 Sep, 2004 1 commit
    • Elijah Newren's avatar
      Focus the no_focus_window if no suitable window is in the mru list (should · cffe7e95
      Elijah Newren authored
      2004-09-15  Elijah Newren  <newren@math.utah.edu>
      
      	Focus the no_focus_window if no suitable window is in the mru list
      	(should fix the almost contrived extra issue found in #147475)
      
      	* doc/how-to-get-focus-right.txt: We no longer need to lie about
      	only focusing panels upon explicit request.
      
      	* src/workspace.c: (meta_workspace_focus_top_window): removed this
      	function--it was more code than needed and was unreliable anyway,
      	(meta_workspace_focus_mru_window): if a suitable window isn't in
      	the mru list, focus the no_focus_window instead of calling
      	focus_top_window.
      cffe7e95
  5. 07 Sep, 2004 2 commits