mirror of
https://github.com/labwc/labwc.git
synced 2026-03-02 01:40:24 -05:00
ssd: Allocate struct ssd and struct ssd_hover_state separately
- Store a pointer to the `struct view` in `struct ssd` - Pass `struct ssd *` instead of `struct view *` to ssd functions - Add `ssd_get_margin()` convenience function
This commit is contained in:
parent
cfa51ab628
commit
1e8b0414fe
15 changed files with 112 additions and 65 deletions
|
|
@ -50,7 +50,6 @@
|
|||
#include "cursor.h"
|
||||
#include "config/keybind.h"
|
||||
#include "config/rcxml.h"
|
||||
#include "ssd.h"
|
||||
#if HAVE_NLS
|
||||
#include <libintl.h>
|
||||
#include <locale.h>
|
||||
|
|
@ -232,7 +231,7 @@ struct server {
|
|||
|
||||
/* SSD state */
|
||||
struct view *focused_view;
|
||||
struct ssd_hover_state ssd_hover_state;
|
||||
struct ssd_hover_state *ssd_hover_state;
|
||||
|
||||
/* Tree for all non-layer xdg/xwayland-shell surfaces */
|
||||
struct wlr_scene_tree *view_tree;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue