-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Portal: support parenting window on wayland (#1768)
- Loading branch information
Showing
3 changed files
with
66 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[CCode (cheader_filename = "gdk/gdkwayland.h")] | ||
namespace Gdk.Wayland { | ||
[CCode (type_id = "GDK_TYPE_WAYLAND_WINDOW", type_check_function = "GDK_IS_WAYLAND_WINDOW")] | ||
public class Window : Gdk.Window { | ||
protected Window (); | ||
|
||
public bool export_handle (owned WindowExported callback); | ||
public bool set_transient_for_exported (string parent_handle_str); | ||
public void unexport_handle (); | ||
} | ||
|
||
[CCode (instance_pos = 2.9)] | ||
public delegate void WindowExported (Gdk.Window window, string handle); | ||
} |