mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 09:51:29 +00:00
Prevent crashes in handle_transform and handle_scale too
This commit is contained in:
parent
3b7a7462a2
commit
2ae2d09c4c
|
@ -524,7 +524,7 @@ static void handle_mode(struct wl_listener *listener, void *data) {
|
||||||
|
|
||||||
static void handle_transform(struct wl_listener *listener, void *data) {
|
static void handle_transform(struct wl_listener *listener, void *data) {
|
||||||
struct sway_output *output = wl_container_of(listener, output, transform);
|
struct sway_output *output = wl_container_of(listener, output, transform);
|
||||||
if (!output->enabled) {
|
if (!output->enabled || !output->configured) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
arrange_layers(output);
|
arrange_layers(output);
|
||||||
|
@ -539,7 +539,7 @@ static void update_textures(struct sway_container *con, void *data) {
|
||||||
|
|
||||||
static void handle_scale(struct wl_listener *listener, void *data) {
|
static void handle_scale(struct wl_listener *listener, void *data) {
|
||||||
struct sway_output *output = wl_container_of(listener, output, scale);
|
struct sway_output *output = wl_container_of(listener, output, scale);
|
||||||
if (!output->enabled) {
|
if (!output->enabled || !output->configured) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
arrange_layers(output);
|
arrange_layers(output);
|
||||||
|
|
Loading…
Reference in a new issue