Revert "wayland: Support always-on-top / sticky windows"

This reverts commit b3cffb85f3.

Pushed by accident.
This commit is contained in:
Jasper St. Pierre
2013-10-29 17:13:03 -04:00
parent 4d41903548
commit ad59827ec8
4 changed files with 22 additions and 58 deletions

View File

@ -169,7 +169,7 @@ gdk_registry_handle_global(void *data, struct wl_registry *registry, uint32_t id
wl_registry_bind(display_wayland->wl_registry, id, &wl_shell_interface, 1);
} else if (strcmp(interface, "gtk_shell") == 0) {
display_wayland->gtk_shell =
wl_registry_bind(display_wayland->wl_registry, id, &gtk_shell_interface, 2);
wl_registry_bind(display_wayland->wl_registry, id, &gtk_shell_interface, 1);
_gdk_wayland_screen_set_has_gtk_shell (display_wayland->screen);
/* We need another roundtrip to receive the shell capabilities */
wait_for_roundtrip(display_wayland);

View File

@ -1647,23 +1647,15 @@ gdk_wayland_window_deiconify (GdkWindow *window)
static void
gdk_wayland_window_stick (GdkWindow *window)
{
GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
if (GDK_WINDOW_DESTROYED (window))
return;
gtk_surface_set_on_all_workspaces (impl->gtk_surface, TRUE);
}
static void
gdk_wayland_window_unstick (GdkWindow *window)
{
GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
if (GDK_WINDOW_DESTROYED (window))
return;
gtk_surface_set_on_all_workspaces (impl->gtk_surface, FALSE);
}
static void
@ -1777,12 +1769,10 @@ static void
gdk_wayland_window_set_keep_above (GdkWindow *window,
gboolean setting)
{
GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
g_return_if_fail (GDK_IS_WINDOW (window));
if (GDK_WINDOW_DESTROYED (window))
return;
gtk_surface_set_always_on_top (impl->gtk_surface, setting);
}
static void

View File

@ -1,11 +1,11 @@
<protocol name="gtk">
<interface name="gtk_shell" version="2">
<interface name="gtk_shell" version="1">
<enum name="capability">
<entry name="global_app_menu" value="1"/>
<entry name="global_menu_bar" value="2"/>
</enum>
<event name="capabilities">
<arg name="capabilities" type="uint"/>
</event>
@ -16,7 +16,7 @@
</request>
</interface>
<interface name="gtk_surface" version="2">
<interface name="gtk_surface" version="1">
<request name="set_dbus_properties">
<arg name="application_id" type="string" allow-null="true"/>
<arg name="app_menu_path" type="string" allow-null="true"/>
@ -25,32 +25,6 @@
<arg name="application_object_path" type="string" allow-null="true"/>
<arg name="unique_bus_name" type="string" allow-null="true"/>
</request>
<request name="set_workspace">
<arg name="workspace" type="uint" />
</request>
<event name="workspace_changed">
<arg name="new_workspace" type="uint" />
</event>
<enum name="always_on_top_state">
<entry name="not_always_on_top" value="0" />
<entry name="always_on_top" value="1" />
</enum>
<request name="set_always_on_top">
<arg name="always_on_top" type="uint" />
</request>
<enum name="on_all_workspaces">
<entry name="not_on_all_workspaces" value="0" />
<entry name="on_all_workspaces" value="1" />
</enum>
<request name="set_on_all_workspaces">
<arg name="on_all_workspaces" type="uint" />
</request>
</interface>
</protocol>