Skip to content

Commit

Permalink
chore(wayland): remove layer shell remnants
Browse files Browse the repository at this point in the history
  • Loading branch information
jtheoof committed Dec 29, 2019
1 parent 7f0a524 commit e8d377f
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 318 deletions.
2 changes: 0 additions & 2 deletions include/swappy.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <stdlib.h>
#include <wayland-client.h>

#include "wlr-layer-shell-unstable-v1-client-protocol.h"
#include "wlr-screencopy-unstable-v1-client-protocol.h"
#include "xdg-output-unstable-v1-client-protocol.h"

Expand Down Expand Up @@ -112,7 +111,6 @@ struct swappy_state {
struct wl_registry *registry;
struct wl_compositor *compositor;
struct wl_shm *shm;
struct zwlr_layer_shell_v1 *layer_shell;
struct zxdg_output_manager_v1 *xdg_output_manager;
struct zwlr_screencopy_manager_v1 *zwlr_screencopy_manager;
struct wl_list outputs; // mako_output::link
Expand Down
1 change: 0 additions & 1 deletion protocol/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ wayland_scanner_client = generator(
client_protocols = [
[wl_protocol_dir, 'stable/xdg-shell/xdg-shell.xml'],
[wl_protocol_dir, 'unstable/xdg-output/xdg-output-unstable-v1.xml'],
['wlr-layer-shell-unstable-v1.xml'],
['wlr-screencopy-unstable-v1.xml'],
]

Expand Down
301 changes: 0 additions & 301 deletions protocol/wlr-layer-shell-unstable-v1.xml

This file was deleted.

1 change: 0 additions & 1 deletion src/application.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <gdk/gdk.h>
#include <glib-2.0/glib.h>
#include <gtk-layer-shell/gtk-layer-shell.h>
#include <gtk/gtk.h>
#include <time.h>

Expand Down
13 changes: 0 additions & 13 deletions src/wayland.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#include "screencopy.h"
#include "swappy.h"
#include "wlr-layer-shell-unstable-v1-client-protocol.h"
#include "wlr-screencopy-unstable-v1-client-protocol.h"
#include "xdg-output-unstable-v1-client-protocol.h"

Expand Down Expand Up @@ -136,10 +135,6 @@ static void global_registry_handler(void *data, struct wl_registry *registry,
wl_output_add_listener(output->wl_output, &output_listener, output);
wl_list_insert(&state->outputs, &output->link);
bound = true;
} else if (strcmp(interface, zwlr_layer_shell_v1_interface.name) == 0) {
state->layer_shell = wl_registry_bind(
registry, name, &zwlr_layer_shell_v1_interface, version);
bound = true;
} else if (strcmp(interface, zxdg_output_manager_v1_interface.name) == 0) {
state->xdg_output_manager = wl_registry_bind(
registry, name, &zxdg_output_manager_v1_interface, version);
Expand Down Expand Up @@ -216,10 +211,6 @@ bool wayland_init(struct swappy_state *state) {
return false;
}
}
if (state->layer_shell == NULL) {
g_warning("compositor doesn't support zwlr_layer_shell_v1");
return false;
}

if (state->zwlr_screencopy_manager == NULL) {
g_warning("compositor does not support zwlr_screencopy_v1");
Expand Down Expand Up @@ -250,10 +241,6 @@ void wayland_finish(struct swappy_state *state) {
wl_compositor_destroy(state->compositor);
}

if (state->layer_shell != NULL) {
zwlr_layer_shell_v1_destroy(state->layer_shell);
}

if (state->zwlr_screencopy_manager != NULL) {
zwlr_screencopy_manager_v1_destroy(state->zwlr_screencopy_manager);
}
Expand Down

0 comments on commit e8d377f

Please sign in to comment.