mirror of
https://github.com/labwc/labwc.git
synced 2026-04-01 07:15:52 -04:00
Support screencopy
This commit is contained in:
parent
2d12a8778e
commit
0cb1c6213b
1 changed files with 12 additions and 0 deletions
12
main.c
12
main.c
|
|
@ -1,5 +1,11 @@
|
||||||
#include "labwc.h"
|
#include "labwc.h"
|
||||||
|
|
||||||
|
#include <wlr/types/wlr_export_dmabuf_v1.h>
|
||||||
|
#include <wlr/types/wlr_screencopy_v1.h>
|
||||||
|
#include <wlr/types/wlr_data_control_v1.h>
|
||||||
|
#include <wlr/types/wlr_gamma_control_v1.h>
|
||||||
|
#include <wlr/types/wlr_primary_selection_v1.h>
|
||||||
|
|
||||||
static struct tinywl_view *next_toplevel(struct tinywl_view *current);
|
static struct tinywl_view *next_toplevel(struct tinywl_view *current);
|
||||||
static bool is_toplevel(struct tinywl_view *view);
|
static bool is_toplevel(struct tinywl_view *view);
|
||||||
static void process_cursor_move(struct tinywl_server *server, uint32_t time);
|
static void process_cursor_move(struct tinywl_server *server, uint32_t time);
|
||||||
|
|
@ -1044,6 +1050,12 @@ int main(int argc, char *argv[]) {
|
||||||
server.compositor = wlr_compositor_create(server.wl_display, server.renderer);
|
server.compositor = wlr_compositor_create(server.wl_display, server.renderer);
|
||||||
wlr_data_device_manager_create(server.wl_display);
|
wlr_data_device_manager_create(server.wl_display);
|
||||||
|
|
||||||
|
wlr_export_dmabuf_manager_v1_create(server.wl_display);
|
||||||
|
wlr_screencopy_manager_v1_create(server.wl_display);
|
||||||
|
wlr_data_control_manager_v1_create(server.wl_display);
|
||||||
|
wlr_gamma_control_manager_v1_create(server.wl_display);
|
||||||
|
wlr_primary_selection_v1_device_manager_create(server.wl_display);
|
||||||
|
|
||||||
/* Creates an output layout, which a wlroots utility for working with an
|
/* Creates an output layout, which a wlroots utility for working with an
|
||||||
* arrangement of screens in a physical layout. */
|
* arrangement of screens in a physical layout. */
|
||||||
server.output_layout = wlr_output_layout_create();
|
server.output_layout = wlr_output_layout_create();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue