[gtk/present-toplevel-2: 56/70] window: Use toplevel api for focus
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 56/70] window: Use toplevel api for focus
- Date: Wed, 4 Mar 2020 00:10:11 +0000 (UTC)
commit 13c5201a222c2c187421d510f6ada45177a759f7
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 3 10:06:05 2020 -0800
window: Use toplevel api for focus
gtk/gtkwindow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index b251d2f693..4fcb568709 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7688,7 +7688,7 @@ gtk_window_present_with_time (GtkWindow *window,
timestamp = gtk_get_current_event_time ();
}
- gdk_surface_focus (surface, timestamp);
+ gdk_toplevel_focus (GDK_TOPLEVEL (surface), timestamp);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]