[gtk/present-toplevel-2: 38/59] window: Use toplevel api for focus
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 38/59] window: Use toplevel api for focus
- Date: Thu, 5 Mar 2020 18:19:49 +0000 (UTC)
commit 08d912fdb0bc95111cc7a9b654540f85995b7d06
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 871bbae00c..ea647bcb64 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7685,7 +7685,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]