aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/handlers.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 2029ae84..dea15acc 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -82,7 +82,7 @@ static void handle_output_pre_render(wlc_handle output) {
82 break; 82 break;
83 } 83 }
84 } 84 }
85 85
86 for (i = 0; i < desktop_shell.panels->length; ++i) { 86 for (i = 0; i < desktop_shell.panels->length; ++i) {
87 struct panel_config *config = desktop_shell.panels->items[i]; 87 struct panel_config *config = desktop_shell.panels->items[i];
88 if (config->output == output) { 88 if (config->output == output) {
@@ -92,16 +92,16 @@ static void handle_output_pre_render(wlc_handle output) {
92 }; 92 };
93 switch (desktop_shell.panel_position) { 93 switch (desktop_shell.panel_position) {
94 case DESKTOP_SHELL_PANEL_POSITION_TOP: 94 case DESKTOP_SHELL_PANEL_POSITION_TOP:
95 geo.origin = (struct wlc_origin){ 0, 0 }; 95 geo.origin = (struct wlc_point){ 0, 0 };
96 break; 96 break;
97 case DESKTOP_SHELL_PANEL_POSITION_BOTTOM: 97 case DESKTOP_SHELL_PANEL_POSITION_BOTTOM:
98 geo.origin = (struct wlc_origin){ 0, resolution.h - size.h }; 98 geo.origin = (struct wlc_point){ 0, resolution.h - size.h };
99 break; 99 break;
100 case DESKTOP_SHELL_PANEL_POSITION_LEFT: 100 case DESKTOP_SHELL_PANEL_POSITION_LEFT:
101 geo.origin = (struct wlc_origin){ 0, 0 }; 101 geo.origin = (struct wlc_point){ 0, 0 };
102 break; 102 break;
103 case DESKTOP_SHELL_PANEL_POSITION_RIGHT: 103 case DESKTOP_SHELL_PANEL_POSITION_RIGHT:
104 geo.origin = (struct wlc_origin){ resolution.w - size.w, 0 }; 104 geo.origin = (struct wlc_point){ resolution.w - size.w, 0 };
105 break; 105 break;
106 } 106 }
107 wlc_surface_render(config->surface, &geo); 107 wlc_surface_render(config->surface, &geo);