mirror of
https://github.com/labwc/labwc.git
synced 2026-02-17 22:05:30 -05:00
SnapToRegion: Add dynamic overlay
Either uses a half transparent single rect if running hardware accelerated or uses a solid struct multirect outline if not.
This commit is contained in:
parent
4edd67de17
commit
eb5c8cfdad
10 changed files with 88 additions and 45 deletions
|
|
@ -47,6 +47,7 @@
|
|||
#include "cursor.h"
|
||||
#include "config/keybind.h"
|
||||
#include "config/rcxml.h"
|
||||
#include "regions.h"
|
||||
#if HAVE_NLS
|
||||
#include <libintl.h>
|
||||
#include <locale.h>
|
||||
|
|
@ -156,7 +157,9 @@ struct seat {
|
|||
struct wlr_scene_tree *icons;
|
||||
} drag;
|
||||
|
||||
struct wlr_scene_rect *region_overlay;
|
||||
/* Private use by regions.c */
|
||||
struct region *region_active;
|
||||
struct region_overlay region_overlay;
|
||||
|
||||
struct wl_client *active_client_while_inhibited;
|
||||
struct wl_list inputs;
|
||||
|
|
@ -312,6 +315,7 @@ struct output {
|
|||
struct wlr_box usable_area;
|
||||
|
||||
struct wl_list regions; /* struct region.link */
|
||||
struct wlr_box regions_usable_area;
|
||||
|
||||
struct lab_data_buffer *osd_buffer;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue