mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
foreign toplevel: send parent event only to clients that support it
This commit is contained in:
parent
5217456b50
commit
b4ed8b3d74
1 changed files with 4 additions and 0 deletions
|
|
@ -408,6 +408,10 @@ void wlr_foreign_toplevel_handle_v1_set_fullscreen(
|
||||||
static void toplevel_resource_send_parent(
|
static void toplevel_resource_send_parent(
|
||||||
struct wl_resource *toplevel_resource,
|
struct wl_resource *toplevel_resource,
|
||||||
struct wlr_foreign_toplevel_handle_v1 *parent) {
|
struct wlr_foreign_toplevel_handle_v1 *parent) {
|
||||||
|
if (wl_resource_get_version(toplevel_resource) <
|
||||||
|
ZWLR_FOREIGN_TOPLEVEL_HANDLE_V1_PARENT_SINCE_VERSION) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
struct wl_client *client = wl_resource_get_client(toplevel_resource);
|
struct wl_client *client = wl_resource_get_client(toplevel_resource);
|
||||||
struct wl_resource *parent_resource = NULL;
|
struct wl_resource *parent_resource = NULL;
|
||||||
if (parent) {
|
if (parent) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue