projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3acfa8
)
window: Make sure we call gdk_wayland_surface_focus
author
Guido Günther
<agx@sigxcpu.org>
Wed, 25 Aug 2021 10:17:47 +0000
(12:17 +0200)
committer
Carlos Garnacho
<carlosg@gnome.org>
Mon, 28 Feb 2022 16:55:54 +0000
(16:55 +0000)
When using xdg_activation this is responsible for submitting
the activation token / startup id to the compositor.
gtk/gtkwindow.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwindow.c
b/gtk/gtkwindow.c
index 9c58c36f1bbb63fe896e7ae9770e49d25f57da2d..ec6bb6fd2014b23908aca308fc03d0bbbcf728ef 100644
(file)
--- a/
gtk/gtkwindow.c
+++ b/
gtk/gtkwindow.c
@@
-5271,14
+5271,15
@@
gtk_window_present_with_time (GtkWindow *window,
#endif
timestamp = gtk_get_current_event_time ();
}
-
- gdk_toplevel_focus (GDK_TOPLEVEL (surface), timestamp);
}
else
{
priv->initial_timestamp = timestamp;
gtk_widget_show (widget);
}
+
+ g_assert (priv->surface != NULL);
+ gdk_toplevel_focus (GDK_TOPLEVEL (priv->surface), timestamp);
}
/**