aboutsummaryrefslogtreecommitdiffstats
path: root/sway/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/layout.c b/sway/layout.c
index 69291daf..22f81688 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -3,7 +3,6 @@
3#include <stdbool.h> 3#include <stdbool.h>
4#include <math.h> 4#include <math.h>
5#include <wlc/wlc.h> 5#include <wlc/wlc.h>
6#include "sway/extensions.h"
7#include "sway/config.h" 6#include "sway/config.h"
8#include "sway/container.h" 7#include "sway/container.h"
9#include "sway/workspace.h" 8#include "sway/workspace.h"
@@ -1001,6 +1000,7 @@ static void arrange_windows_r(swayc_t *container, double width, double height) {
1001 { 1000 {
1002 swayc_t *output = swayc_parent_by_type(container, C_OUTPUT); 1001 swayc_t *output = swayc_parent_by_type(container, C_OUTPUT);
1003 width = output->width, height = output->height; 1002 width = output->width, height = output->height;
1003 /* TODO WLR
1004 for (i = 0; i < desktop_shell.panels->length; ++i) { 1004 for (i = 0; i < desktop_shell.panels->length; ++i) {
1005 struct panel_config *config = desktop_shell.panels->items[i]; 1005 struct panel_config *config = desktop_shell.panels->items[i];
1006 if (config->output == output->handle) { 1006 if (config->output == output->handle) {
@@ -1022,6 +1022,7 @@ static void arrange_windows_r(swayc_t *container, double width, double height) {
1022 } 1022 }
1023 } 1023 }
1024 } 1024 }
1025 */
1025 int gap = swayc_gap(container); 1026 int gap = swayc_gap(container);
1026 x = container->x = x + gap; 1027 x = container->x = x + gap;
1027 y = container->y = y + gap; 1028 y = container->y = y + gap;
@@ -1380,11 +1381,13 @@ void arrange_windows(swayc_t *container, double width, double height) {
1380} 1381}
1381 1382
1382void arrange_backgrounds(void) { 1383void arrange_backgrounds(void) {
1384 /* TODO WLR
1383 struct background_config *bg; 1385 struct background_config *bg;
1384 for (int i = 0; i < desktop_shell.backgrounds->length; ++i) { 1386 for (int i = 0; i < desktop_shell.backgrounds->length; ++i) {
1385 bg = desktop_shell.backgrounds->items[i]; 1387 bg = desktop_shell.backgrounds->items[i];
1386 wlc_view_send_to_back(bg->handle); 1388 wlc_view_send_to_back(bg->handle);
1387 } 1389 }
1390 */
1388} 1391}
1389 1392
1390/** 1393/**