mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-19 12:04:18 +02:00
Fix incompatibilities with wlroots 0.13.0
This commit is contained in:
parent
a69cf18f7c
commit
b989fe50f0
6 changed files with 13 additions and 10 deletions
|
|
@ -308,7 +308,7 @@ main(int argc, char *argv[]) {
|
|||
|
||||
set_sig_handler(SIGCHLD, sig_chld_handler);
|
||||
|
||||
backend = wlr_backend_autocreate(server.wl_display, NULL);
|
||||
backend = wlr_backend_autocreate(server.wl_display);
|
||||
if(!backend) {
|
||||
wlr_log(WLR_ERROR, "Unable to create the wlroots backend");
|
||||
ret = 1;
|
||||
|
|
|
|||
|
|
@ -614,7 +614,7 @@ keybinding_cycle_views(struct cg_server *server, bool reverse) {
|
|||
}
|
||||
struct cg_view *it_view, *next_view = NULL;
|
||||
if(reverse) {
|
||||
next_view=view_get_prev_view(current_view);
|
||||
next_view = view_get_prev_view(current_view);
|
||||
} else {
|
||||
struct wl_list *it;
|
||||
it = current_view->link.next;
|
||||
|
|
|
|||
10
output.c
10
output.c
|
|
@ -361,8 +361,8 @@ frame_done:
|
|||
}
|
||||
|
||||
static void
|
||||
handle_output_transform(struct wl_listener *listener, void *data) {
|
||||
struct cg_output *output = wl_container_of(listener, output, transform);
|
||||
handle_output_commit(struct wl_listener *listener, void *data) {
|
||||
struct cg_output *output = wl_container_of(listener, output, commit);
|
||||
|
||||
if(!output->wlr_output->enabled || output->workspaces == NULL) {
|
||||
return;
|
||||
|
|
@ -468,7 +468,7 @@ output_destroy(struct cg_output *output) {
|
|||
|
||||
wl_list_remove(&output->destroy.link);
|
||||
wl_list_remove(&output->mode.link);
|
||||
wl_list_remove(&output->transform.link);
|
||||
wl_list_remove(&output->commit.link);
|
||||
wl_list_remove(&output->damage_frame.link);
|
||||
wl_list_remove(&output->damage_destroy.link);
|
||||
|
||||
|
|
@ -613,8 +613,8 @@ handle_new_output(struct wl_listener *listener, void *data) {
|
|||
|
||||
output->mode.notify = handle_output_mode;
|
||||
wl_signal_add(&wlr_output->events.mode, &output->mode);
|
||||
output->transform.notify = handle_output_transform;
|
||||
wl_signal_add(&wlr_output->events.transform, &output->transform);
|
||||
output->commit.notify = handle_output_commit;
|
||||
wl_signal_add(&wlr_output->events.commit, &output->commit);
|
||||
output->destroy.notify = handle_output_destroy;
|
||||
wl_signal_add(&wlr_output->events.destroy, &output->destroy);
|
||||
output->damage_frame.notify = handle_output_damage_frame;
|
||||
|
|
|
|||
2
output.h
2
output.h
|
|
@ -16,7 +16,7 @@ struct cg_output {
|
|||
struct wlr_output_damage *damage;
|
||||
|
||||
struct wl_listener mode;
|
||||
struct wl_listener transform;
|
||||
struct wl_listener commit;
|
||||
struct wl_listener destroy;
|
||||
struct wl_listener damage_frame;
|
||||
struct wl_listener damage_destroy;
|
||||
|
|
|
|||
4
seat.c
4
seat.c
|
|
@ -24,6 +24,7 @@
|
|||
#include <wlr/types/wlr_primary_selection.h>
|
||||
#include <wlr/types/wlr_seat.h>
|
||||
#include <wlr/types/wlr_surface.h>
|
||||
#include <wlr/types/wlr_touch.h>
|
||||
#include <wlr/types/wlr_xcursor_manager.h>
|
||||
#include <wlr/util/log.h>
|
||||
#if CG_HAS_XWAYLAND
|
||||
|
|
@ -333,7 +334,8 @@ handle_key_event(struct cg_keyboard_group *group, struct cg_seat *seat,
|
|||
bool handled = false;
|
||||
|
||||
for(int i = 0; i < nsyms; ++i) {
|
||||
if(event->state == WLR_KEY_PRESSED && !key_is_modifier(syms[i])) {
|
||||
if(event->state == WL_KEYBOARD_KEY_STATE_PRESSED &&
|
||||
!key_is_modifier(syms[i])) {
|
||||
uint32_t modifiers = wlr_keyboard_get_modifiers(device->keyboard);
|
||||
/* Get the consumed_modifiers and remove them from the modifier list
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -235,7 +235,8 @@ static void
|
|||
for_each_popup(struct cg_view *view, wlr_surface_iterator_func_t iterator,
|
||||
void *data) {
|
||||
struct cg_xdg_shell_view *xdg_shell_view = xdg_shell_view_from_view(view);
|
||||
wlr_xdg_surface_for_each_popup(xdg_shell_view->xdg_surface, iterator, data);
|
||||
wlr_xdg_surface_for_each_popup_surface(xdg_shell_view->xdg_surface,
|
||||
iterator, data);
|
||||
}
|
||||
|
||||
static struct wlr_surface *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue