Files
gtk/gdk
Joan Bruguera 41827d9f72 gdk/wayland: set requesting surface to xdg-activation
The argument to xdg_activation_token_v1_set_surface is documented to be the
surface requesting the activation, not the surface to be activated, which is
given later when calling xdg_activation_v1_activate.
(c.f. 36cee4bdbc)

Use the same logic as in gdk_wayland_app_launch_context_get_startup_notify_id,
i.e. if we have a surface with focus, set that, otherwise set NULL.

This fixes requesting urgent/focus on wlroots (compositors like Sway, etc.),
which was blocked as the surface requesting the activation didn't have focus.

Backport of: 43c1a433aa

Signed-off-by: Joan Bruguera <joanbrugueram@gmail.com>
2023-01-27 14:53:41 +00:00
..
2019-03-27 16:03:43 +00:00
2012-02-27 17:06:11 +00:00
2017-05-22 14:26:32 +01:00
2022-03-03 21:44:38 +01:00
2016-08-23 21:01:44 +02:00
2016-06-09 17:45:40 +01:00
2019-05-31 11:12:29 -07:00
2012-02-27 17:06:11 +00:00
2016-08-23 21:01:44 +02:00
2016-08-23 21:01:44 +02:00
2016-08-23 21:01:44 +02:00
2016-05-08 15:34:28 +02:00
2019-05-31 11:12:29 -07:00
2016-06-09 17:45:40 +01:00
2020-06-11 21:24:17 +02:00
2014-11-06 12:24:43 +01:00
2012-02-27 17:06:11 +00:00
2013-04-19 20:11:39 -04:00
2017-12-25 23:00:30 -05:00
2017-12-25 23:00:30 -05:00
2016-05-08 15:34:28 +02:00
2020-04-23 19:21:36 +02:00
2016-04-18 11:46:58 -04:00
2019-06-06 17:17:20 -07:00
2019-06-06 17:17:20 -07:00
2014-08-30 00:53:21 -04:00
2015-10-03 22:26:27 -04:00
2019-05-31 11:12:29 -07:00
2014-06-11 21:55:15 -04:00
2017-11-13 23:42:51 +01:00
2016-10-28 06:04:58 +02:00
2016-10-28 06:04:58 +02:00
2012-02-27 17:06:11 +00:00