mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
SnapToRegion: Add implementation
This commit is contained in:
parent
45e0a4f48c
commit
51727cf8f7
3 changed files with 69 additions and 0 deletions
38
src/regions.c
Normal file
38
src/regions.c
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#include <assert.h>
|
||||
#include <float.h>
|
||||
#include <string.h>
|
||||
#include <wlr/types/wlr_scene.h>
|
||||
#include <wlr/util/box.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include "common/graphic-helpers.h"
|
||||
#include "common/mem.h"
|
||||
#include "labwc.h"
|
||||
#include "regions.h"
|
||||
|
||||
void
|
||||
regions_init(struct server *server, struct seat *seat)
|
||||
{
|
||||
/* To be filled later */
|
||||
}
|
||||
|
||||
void
|
||||
regions_update(struct output *output)
|
||||
{
|
||||
/* To be filled later */
|
||||
}
|
||||
|
||||
void
|
||||
regions_destroy(struct wl_list *regions)
|
||||
{
|
||||
assert(regions);
|
||||
struct region *region, *region_tmp;
|
||||
wl_list_for_each_safe(region, region_tmp, regions, link) {
|
||||
wl_list_remove(®ion->link);
|
||||
zfree(region->name);
|
||||
zfree(region);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue