mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-06 13:29:45 -05:00
DRY up focus and implement z ordering
This commit is contained in:
parent
033036712a
commit
ada7fde6fb
9 changed files with 56 additions and 43 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include <wlr/types/wlr_wl_shell.h>
|
||||
#include <wlr/types/wlr_xdg_shell_v6.h>
|
||||
#include <wlr/types/wlr_gamma_control.h>
|
||||
#include <wlr/util/list.h>
|
||||
#include "rootston/view.h"
|
||||
#include "rootston/config.h"
|
||||
|
||||
|
|
@ -21,7 +22,7 @@ struct roots_output {
|
|||
};
|
||||
|
||||
struct roots_desktop {
|
||||
struct wl_list views;
|
||||
list_t *views;
|
||||
|
||||
struct wl_list outputs;
|
||||
struct timespec last_frame;
|
||||
|
|
|
|||
|
|
@ -106,5 +106,9 @@ void cursor_load_config(struct roots_config *config,
|
|||
struct wlr_cursor *cursor,
|
||||
struct roots_input *input,
|
||||
struct roots_desktop *desktop);
|
||||
const struct roots_input_event *get_input_event(struct roots_input *input,
|
||||
uint32_t serial);
|
||||
void view_begin_move(struct roots_input *input, struct wlr_cursor *cursor,
|
||||
struct roots_view *view);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -56,7 +56,6 @@ struct roots_view {
|
|||
struct roots_xwayland_surface *roots_xwayland_surface;
|
||||
};
|
||||
struct wlr_surface *wlr_surface;
|
||||
struct wl_list link;
|
||||
// TODO: This would probably be better as a field that's updated on a
|
||||
// configure event from the xdg_shell
|
||||
// If not then this should follow the typical type/impl pattern we use
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue