mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
implement "focused container" feature for swaygrab
This commit is contained in:
parent
043640820f
commit
0516dba3f6
6 changed files with 221 additions and 48 deletions
10
include/swaygrab/json.h
Normal file
10
include/swaygrab/json.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#include <json-c/json.h>
|
||||
#include "wlc/wlc.h"
|
||||
|
||||
void init_json_tree(int socketfd);
|
||||
void free_json_tree();
|
||||
char *get_focused_output();
|
||||
char *create_payload(const char *output, struct wlc_geometry *g);
|
||||
struct wlc_geometry *get_container_geometry(json_object *container);
|
||||
json_object *get_focused_container();
|
||||
json_object *get_output_container(const char *output);
|
||||
Loading…
Add table
Add a link
Reference in a new issue