wayland: Add support for gtk_window_set_modal

Add two new requests to the gtk_surface interface: set_modal and
unset_modal. The server will currently not do anything special with
input focus, and its up to the client to ignore events on the parent
surface.

This commit bumps the gtk_shell interface version to 2. By connecting to
a Wayland server with another gtk_shell interface version any features
depending on the gtk_shell protocol will not be available.

https://bugzilla.gnome.org/show_bug.cgi?id=745721
This commit is contained in:
Jonas Ådahl
2015-03-06 11:40:12 +08:00
parent 556fde096a
commit 3da7394b58
3 changed files with 42 additions and 21 deletions

View File

@ -42,7 +42,7 @@
#define WL_SURFACE_HAS_BUFFER_SCALE 3
#define SUPPORTED_GTK_SHELL_VERSION 1
#define SUPPORTED_GTK_SHELL_VERSION 2
#define GDK_WINDOW_IS_WAYLAND(win) (GDK_IS_WINDOW_IMPL_WAYLAND (((GdkWindow *)win)->impl))