Commit a1670a15 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Use the timestamp of the last user interaction when focusing the window.

2005-02-20  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
	the last user interaction when focusing the window.  (#166379,
	Elijah Newren)
parent 6a19b7b8
2005-02-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
the last user interaction when focusing the window. (#166379,
Elijah Newren)
Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
* gtk/gtkuimanager.c (start_element_handler): make sure expand
......
2005-02-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
the last user interaction when focusing the window. (#166379,
Elijah Newren)
Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
* gtk/gtkuimanager.c (start_element_handler): make sure expand
......
2005-02-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwindow.c (gtk_window_present): Use the timestamp of
the last user interaction when focusing the window. (#166379,
Elijah Newren)
Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
* gtk/gtkuimanager.c (start_element_handler): make sure expand
......
......@@ -45,6 +45,10 @@
#include "gtkmarshalers.h"
#include "gtkplug.h"
#ifdef GDK_WINDOWING_X11
#include "x11/gdkx.h"
#endif
enum {
SET_FOCUS,
FRAME_EVENT,
......@@ -5932,8 +5936,13 @@ gtk_window_present (GtkWindow *window)
/* note that gdk_window_focus() will also move the window to
* the current desktop, for WM spec compliant window managers.
*/
#ifdef GDK_WINDOWING_X11
gdk_window_focus (widget->window,
gdk_x11_display_get_user_time (gtk_widget_get_display (widget)));
#else
gdk_window_focus (widget->window,
gtk_get_current_event_time ());
#endif
}
else
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment