mirror of
https://github.com/wizbright/waybox.git
synced 2025-10-29 05:40:20 -04:00
Got basic xdg-shell code
This commit is contained in:
parent
bed7b707f2
commit
cb67c24718
3 changed files with 11 additions and 2 deletions
|
|
@ -1,6 +1,11 @@
|
|||
# waybox
|
||||
An openbox clone on Wayland (WIP)
|
||||
|
||||
This is the basic-apps branch, in which I'm working to get simple apps to work.
|
||||
Currently, I'm targeting wlroots 0.6.0, but after I get the basic functionality
|
||||
worked out, I want to get it to compile with wlroots 0.10.0. Right now, a
|
||||
weston-terminal window will show, but it won't receive keyboard input.
|
||||
|
||||
### Goals
|
||||
The main goal of this project is to provide a similar feel to openbox but on wayland
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
#include <wlr/types/wlr_gamma_control_v1.h>
|
||||
#include <wlr/types/wlr_gtk_primary_selection.h>
|
||||
#include <wlr/types/wlr_output_layout.h>
|
||||
#include <wlr/types/wlr_xdg_shell.h>
|
||||
|
||||
#include "waybox/output.h"
|
||||
#include "waybox/cursor.h"
|
||||
|
|
|
|||
|
|
@ -58,6 +58,9 @@ bool start_wb(struct wb_server* server) {
|
|||
return false;
|
||||
}
|
||||
|
||||
//printf("Running Wayland compositor on Wayland display '%s'\n", socket);
|
||||
//setenv("WAYLAND_DISPLAY", socket, true);
|
||||
|
||||
wlr_gamma_control_manager_v1_create(server->wl_display);
|
||||
wlr_screencopy_manager_v1_create(server->wl_display);
|
||||
wlr_gtk_primary_selection_device_manager_create(server->wl_display);
|
||||
|
|
@ -66,8 +69,8 @@ bool start_wb(struct wb_server* server) {
|
|||
server->compositor = wlr_compositor_create(server->wl_display,
|
||||
wlr_backend_get_renderer(server->backend));
|
||||
|
||||
// wlr_xdg_shell_v6_create(server.wl_display);
|
||||
wlr_idle_create(server->wl_display);
|
||||
wlr_xdg_shell_create(server->wl_display);
|
||||
//wlr_idle_create(server->wl_display);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue