aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-04 00:20:44 -0400
committerLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-04 00:20:44 -0400
commit741e3959e30283f5f699f7e9fa6620e3578b9c76 (patch)
tree8489f010c2f3e112722e7b999bacef18dfe418ef /include
parentsimplify container close (diff)
parentMerge pull request #1722 from swaywm/swaybar-hidpi (diff)
downloadsway-741e3959e30283f5f699f7e9fa6620e3578b9c76.tar.gz
sway-741e3959e30283f5f699f7e9fa6620e3578b9c76.tar.zst
sway-741e3959e30283f5f699f7e9fa6620e3578b9c76.zip
Merge branch 'wlroots' into split-containers2
Diffstat (limited to 'include')
-rw-r--r--include/sway/input/seat.h7
-rw-r--r--include/swaybar/bar.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h
index c780a52b..137fcd22 100644
--- a/include/sway/input/seat.h
+++ b/include/sway/input/seat.h
@@ -1,6 +1,7 @@
1#ifndef _SWAY_INPUT_SEAT_H 1#ifndef _SWAY_INPUT_SEAT_H
2#define _SWAY_INPUT_SEAT_H 2#define _SWAY_INPUT_SEAT_H
3 3
4#include <wlr/types/wlr_layer_shell.h>
4#include <wlr/types/wlr_seat.h> 5#include <wlr/types/wlr_seat.h>
5#include "sway/input/input-manager.h" 6#include "sway/input/input-manager.h"
6 7
@@ -28,6 +29,9 @@ struct sway_seat {
28 bool has_focus; 29 bool has_focus;
29 struct wl_list focus_stack; // list of containers in focus order 30 struct wl_list focus_stack; // list of containers in focus order
30 31
32 // If the focused layer is set, views cannot receive keyboard focus
33 struct wlr_layer_surface *focused_layer;
34
31 struct wl_listener focus_destroy; 35 struct wl_listener focus_destroy;
32 struct wl_listener new_container; 36 struct wl_listener new_container;
33 37
@@ -57,6 +61,9 @@ void seat_set_focus(struct sway_seat *seat, struct sway_container *container);
57void seat_set_focus_warp(struct sway_seat *seat, 61void seat_set_focus_warp(struct sway_seat *seat,
58 struct sway_container *container, bool warp); 62 struct sway_container *container, bool warp);
59 63
64void seat_set_focus_layer(struct sway_seat *seat,
65 struct wlr_layer_surface *layer);
66
60struct sway_container *seat_get_focus(struct sway_seat *seat); 67struct sway_container *seat_get_focus(struct sway_seat *seat);
61 68
62/** 69/**
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h
index 74292519..503b961c 100644
--- a/include/swaybar/bar.h
+++ b/include/swaybar/bar.h
@@ -58,6 +58,7 @@ struct swaybar_output {
58 bool focused; 58 bool focused;
59 59
60 uint32_t width, height; 60 uint32_t width, height;
61 int32_t scale;
61 struct pool_buffer buffers[2]; 62 struct pool_buffer buffers[2];
62 struct pool_buffer *current_buffer; 63 struct pool_buffer *current_buffer;
63}; 64};