forked from AuroraMiddleware/gtk
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)
This commit is contained in:
parent
6a19b7b894
commit
a1670a154a
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkuimanager.c (start_element_handler): make sure expand
|
* gtk/gtkuimanager.c (start_element_handler): make sure expand
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkuimanager.c (start_element_handler): make sure expand
|
* gtk/gtkuimanager.c (start_element_handler): make sure expand
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
Thu Feb 17 14:58:16 2005 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkuimanager.c (start_element_handler): make sure expand
|
* gtk/gtkuimanager.c (start_element_handler): make sure expand
|
||||||
|
@ -45,6 +45,10 @@
|
|||||||
#include "gtkmarshalers.h"
|
#include "gtkmarshalers.h"
|
||||||
#include "gtkplug.h"
|
#include "gtkplug.h"
|
||||||
|
|
||||||
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
#include "x11/gdkx.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
SET_FOCUS,
|
SET_FOCUS,
|
||||||
FRAME_EVENT,
|
FRAME_EVENT,
|
||||||
@ -5932,8 +5936,13 @@ gtk_window_present (GtkWindow *window)
|
|||||||
/* note that gdk_window_focus() will also move the window to
|
/* note that gdk_window_focus() will also move the window to
|
||||||
* the current desktop, for WM spec compliant window managers.
|
* 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,
|
gdk_window_focus (widget->window,
|
||||||
gtk_get_current_event_time ());
|
gtk_get_current_event_time ());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user