Elijah Newren 892cb8a8dd Wrap XSetInputFocus, making display->expected_focus_window a little more
2004-12-22  Elijah Newren  <newren@gmail.com>

	Wrap XSetInputFocus, making display->expected_focus_window a
	little more reliable (see #154598)

	* src/display.h: (struct _MetaDisplay): add a large comment about
	the expected_focus_window, add a last_focus_time field,
	(XSERVER_TIME_IS_BEFORE): new macro moved from window.c but fixed
	for 64-bit systems, (meta_display_set_input_focus_window): new
	function

	* src/display.c (meta_display_open): initialize last_focus_time,
	add a comment about brokenness of trying to set intial focus
	window, (meta_display_set_input_focus_window): new function that
	wraps XSetInputFocus,
	(meta_display_focus_the_no_focus_window): make this function
	closer to a wrapping of XSetInputFocus for the no_focus_window.

	* src/window.c (XSERVER_TIME_IS_LATER): remove this macro in favor
	of the improved one added to display.h

	* src/display.c (meta_display_open):
	* src/window.c (meta_window_focus):
	use meta_display_focus_the_no_focus_window and
	meta_display_set_input_focus instead of XSetInputFocus
2004-12-23 06:44:56 +00:00
..
2002-11-26 12:22:39 +00:00
...
2001-06-03 21:39:57 +00:00
...
2001-06-03 21:39:57 +00:00
...
2001-06-03 18:33:59 +00:00
...
2001-06-03 18:33:59 +00:00
...
2001-06-20 03:01:26 +00:00
...
2001-06-20 03:01:26 +00:00
2002-12-01 03:58:04 +00:00
2002-12-01 03:58:04 +00:00
2002-12-01 03:58:04 +00:00
2002-02-09 23:03:52 +00:00
2001-10-15 04:14:58 +00:00
...
2001-07-26 03:58:24 +00:00
2004-10-13 08:32:10 +00:00
2004-10-13 08:32:10 +00:00
2004-06-24 15:47:05 +00:00