diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-11-18 22:14:57 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-11-18 22:14:57 -0500 |
commit | 65b8a5c3ce023584cdc5dd84394ea1101c9f23e9 (patch) | |
tree | 81d7520a1766cdb27be960f25c85d7ead22337c7 /include | |
parent | Basic support for extensions in server and clients (diff) | |
download | sway-65b8a5c3ce023584cdc5dd84394ea1101c9f23e9.tar.gz sway-65b8a5c3ce023584cdc5dd84394ea1101c9f23e9.tar.zst sway-65b8a5c3ce023584cdc5dd84394ea1101c9f23e9.zip |
Add background handling
This does not work as expected. I think the problem is on the wlc side.
Please review, @Cloudef. To reproduce the issues:
1. Run sway
2. Open terminal in sway
3. Run swaybg
swaybg will create a surface and ask to have it set as the background,
but wlc_handle_from_wl_surface_resource will return 0. If the swaybg
surface is a shell surface, then it works - but wlc complains about the
pointer type and segfaults as soon as the pre-render hook tries to draw
the background.
Diffstat (limited to 'include')
-rw-r--r-- | include/extensions.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/extensions.h b/include/extensions.h index e122c59a..3e2d1cde 100644 --- a/include/extensions.h +++ b/include/extensions.h | |||
@@ -1,6 +1,19 @@ | |||
1 | #ifndef _SWAY_EXTENSIONS_H | 1 | #ifndef _SWAY_EXTENSIONS_H |
2 | #define _SWAY_EXTENSIONS_H | 2 | #define _SWAY_EXTENSIONS_H |
3 | 3 | ||
4 | #include "list.h" | ||
5 | |||
6 | struct background_config { | ||
7 | wlc_handle output; | ||
8 | wlc_handle surface; | ||
9 | }; | ||
10 | |||
11 | struct desktop_shell_state { | ||
12 | list_t *backgrounds; | ||
13 | }; | ||
14 | |||
15 | extern struct desktop_shell_state desktop_shell; | ||
16 | |||
4 | void register_extensions(void); | 17 | void register_extensions(void); |
5 | 18 | ||
6 | #endif | 19 | #endif |