mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Changed session signal to only emit on DRM changes
This commit is contained in:
parent
d1493b2391
commit
091de12bf4
6 changed files with 60 additions and 69 deletions
|
|
@ -1,22 +1,17 @@
|
|||
#ifndef WLR_SESSION_H
|
||||
#define WLR_SESSION_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <wayland-server.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
struct session_impl;
|
||||
|
||||
// Passed to the listeners of device_paused/resumed
|
||||
struct device_arg {
|
||||
dev_t dev;
|
||||
int fd; // Only for device_resumed
|
||||
};
|
||||
|
||||
struct wlr_session {
|
||||
const struct session_impl *impl;
|
||||
|
||||
struct wl_signal device_paused;
|
||||
struct wl_signal device_resumed;
|
||||
bool active;
|
||||
struct wl_signal session_signal;
|
||||
};
|
||||
|
||||
struct wlr_session *wlr_session_start(struct wl_display *disp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue