mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2025-01-16 15:41:25 +01:00
65b8a5c3ce
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.
19 lines
312 B
C
19 lines
312 B
C
#ifndef _SWAY_EXTENSIONS_H
|
|
#define _SWAY_EXTENSIONS_H
|
|
|
|
#include "list.h"
|
|
|
|
struct background_config {
|
|
wlc_handle output;
|
|
wlc_handle surface;
|
|
};
|
|
|
|
struct desktop_shell_state {
|
|
list_t *backgrounds;
|
|
};
|
|
|
|
extern struct desktop_shell_state desktop_shell;
|
|
|
|
void register_extensions(void);
|
|
|
|
#endif
|