mirror of
https://github.com/swaywm/sway.git
synced 2024-11-18 05:59:15 +00:00
Merge branch 'master' into exit-nag
This commit is contained in:
commit
b16043aeeb
|
@ -234,6 +234,10 @@ struct sway_container *container_at(struct sway_container *workspace,
|
||||||
double lx, double ly, struct wlr_surface **surface,
|
double lx, double ly, struct wlr_surface **surface,
|
||||||
double *sx, double *sy);
|
double *sx, double *sy);
|
||||||
|
|
||||||
|
struct sway_container *container_at_view(struct sway_container *view,
|
||||||
|
double lx, double ly, struct wlr_surface **surface,
|
||||||
|
double *sx, double *sy);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Apply the function for each descendant of the container breadth first.
|
* Apply the function for each descendant of the container breadth first.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -99,7 +99,7 @@ static struct sway_container *container_at_coords(
|
||||||
return ws;
|
return ws;
|
||||||
}
|
}
|
||||||
if (ws->sway_workspace->fullscreen) {
|
if (ws->sway_workspace->fullscreen) {
|
||||||
return container_at(ws->sway_workspace->fullscreen, lx, ly,
|
return container_at_view(ws->sway_workspace->fullscreen, lx, ly,
|
||||||
surface, sx, sy);
|
surface, sx, sy);
|
||||||
}
|
}
|
||||||
if ((*surface = layer_surface_at(output,
|
if ((*surface = layer_surface_at(output,
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#include <wlr/types/wlr_compositor.h>
|
#include <wlr/types/wlr_compositor.h>
|
||||||
#include <wlr/types/wlr_export_dmabuf_v1.h>
|
#include <wlr/types/wlr_export_dmabuf_v1.h>
|
||||||
#include <wlr/types/wlr_gamma_control.h>
|
#include <wlr/types/wlr_gamma_control.h>
|
||||||
|
#include <wlr/types/wlr_gamma_control_v1.h>
|
||||||
#include <wlr/types/wlr_idle.h>
|
#include <wlr/types/wlr_idle.h>
|
||||||
#include <wlr/types/wlr_layer_shell.h>
|
#include <wlr/types/wlr_layer_shell.h>
|
||||||
#include <wlr/types/wlr_linux_dmabuf_v1.h>
|
#include <wlr/types/wlr_linux_dmabuf_v1.h>
|
||||||
|
@ -56,6 +57,7 @@ bool server_init(struct sway_server *server) {
|
||||||
wlr_data_device_manager_create(server->wl_display);
|
wlr_data_device_manager_create(server->wl_display);
|
||||||
|
|
||||||
wlr_gamma_control_manager_create(server->wl_display);
|
wlr_gamma_control_manager_create(server->wl_display);
|
||||||
|
wlr_gamma_control_manager_v1_create(server->wl_display);
|
||||||
wlr_primary_selection_device_manager_create(server->wl_display);
|
wlr_primary_selection_device_manager_create(server->wl_display);
|
||||||
|
|
||||||
server->new_output.notify = handle_new_output;
|
server->new_output.notify = handle_new_output;
|
||||||
|
|
|
@ -535,7 +535,7 @@ struct sway_container *container_parent(struct sway_container *container,
|
||||||
return container;
|
return container;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct sway_container *container_at_view(struct sway_container *swayc,
|
struct sway_container *container_at_view(struct sway_container *swayc,
|
||||||
double lx, double ly,
|
double lx, double ly,
|
||||||
struct wlr_surface **surface, double *sx, double *sy) {
|
struct wlr_surface **surface, double *sx, double *sy) {
|
||||||
if (!sway_assert(swayc->type == C_VIEW, "Expected a view")) {
|
if (!sway_assert(swayc->type == C_VIEW, "Expected a view")) {
|
||||||
|
|
Loading…
Reference in a new issue