summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2025-01-20 04:51:45 +0100
committerMitya Selivanov <automainint@guattari.tech>2025-01-20 04:51:45 +0100
commit0a3e59f645c0a67a97e9079e10e632e7120cecfd (patch)
treec6c605eabca66b134e171056f0fe862f6e97b5a7
parentcc074713176fd83151150125e69b8391cb33f218 (diff)
downloadreduced_system_layer-0a3e59f645c0a67a97e9079e10e632e7120cecfd.zip
Cleanup
-rw-r--r--reduced_system_layer.c59
1 files changed, 0 insertions, 59 deletions
diff --git a/reduced_system_layer.c b/reduced_system_layer.c
index 08e5fad..544628a 100644
--- a/reduced_system_layer.c
+++ b/reduced_system_layer.c
@@ -1637,12 +1637,6 @@ typedef struct {
struct wl_output *output;
void * xdg_output;
struct wl_list link;
- WL_Box_ geometry;
- i32 transform;
- i32 scale;
- WL_Box_ local_geometry;
- WL_Box_ logical_geometry;
- f64 logical_scale;
c8 * name;
WL_Buffer_ * buffer;
void * screencopy_frame;
@@ -1797,52 +1791,6 @@ static struct zwlr_screencopy_frame_v1_listener screencopy_frame_listener = {
.failed = screencopy_frame_handle_failed,
};
-static void output_handle_geometry(
- void * data,
- struct wl_output *wl_output,
- i32 x,
- i32 y,
- i32 physical_width,
- i32 physical_height,
- i32 subpixel,
- c8 const * make,
- c8 const * model,
- i32 transform
-) {
- WL_Output_ *output = data;
-
- output->geometry.x = x;
- output->geometry.y = y;
- output->transform = transform;
-}
-
-static void output_handle_mode(
- void * data,
- struct wl_output *wl_output,
- u32 flags,
- i32 width,
- i32 height,
- i32 refresh
-) {
- WL_Output_ *output = data;
-
- if ((flags & WL_OUTPUT_MODE_CURRENT) != 0) {
- output->geometry.width = width;
- output->geometry.height = height;
- }
-}
-
-static void output_handle_done(void *data, struct wl_output *wl_output) { }
-
-static void output_handle_scale(
- void * data,
- struct wl_output *wl_output,
- i32 factor
-) {
- WL_Output_ *output = data;
- output->scale = factor;
-}
-
static void handle_global(
void * data,
struct wl_registry *registry,
@@ -1865,14 +1813,7 @@ static void handle_global(
} else if (strcmp(interface, wl_output_interface.name) == 0) {
WL_Output_ *output = calloc(1, sizeof(WL_Output_));
output->state = state;
- output->scale = 1;
output->output = wl_registry_bind(registry, name, &wl_output_interface, 3);
- wl_output_add_listener(output->output, &(struct wl_output_listener) {
- .geometry = output_handle_geometry,
- .mode = output_handle_mode,
- .done = output_handle_done,
- .scale = output_handle_scale,
- }, output);
wl_list_insert(&state->outputs, &output->link);
} else if (strcmp(interface, zwlr_screencopy_manager_v1_interface.name) == 0)
state->screencopy_manager = wl_registry_bind(