mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-18 06:59:44 -05:00
rootston: make roots_view embedded and remove unions
This commit is contained in:
parent
9f11bf571e
commit
9adcbabea4
10 changed files with 411 additions and 398 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include <sys/wait.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include "rootston/bindings.h"
|
||||
#include "rootston/view.h"
|
||||
|
||||
static bool outputs_enabled = true;
|
||||
|
||||
|
|
@ -83,8 +84,10 @@ void execute_binding_command(struct roots_seat *seat,
|
|||
} else if (strcmp(command, "toggle_decoration_mode") == 0) {
|
||||
struct roots_view *focus = roots_seat_get_focus(seat);
|
||||
if (focus != NULL && focus->type == ROOTS_XDG_SHELL_VIEW) {
|
||||
struct roots_xdg_surface *xdg_surface =
|
||||
roots_xdg_surface_from_view(focus);
|
||||
struct roots_xdg_toplevel_decoration *decoration =
|
||||
focus->roots_xdg_surface->xdg_toplevel_decoration;
|
||||
xdg_surface->xdg_toplevel_decoration;
|
||||
if (decoration != NULL) {
|
||||
enum wlr_xdg_toplevel_decoration_v1_mode mode =
|
||||
decoration->wlr_decoration->current_mode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue