aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-12-01 15:17:07 -0500
committerDrew DeVault <sir@cmpwn.com>2015-12-01 15:17:07 -0500
commitef9258bd665ff6a47693ec252bc4d7c8c04c5dee (patch)
treed4b2ee6af00271c86482552e7003b1e5adc06b27 /sway
parent76a3868ce8b4b43bb45bb69daa47bd0e25ce9255 (diff)
parent3658777e47ea543267d0acb099c70e65bb0741b6 (diff)
Merge pull request #286 from mikkeloscar/wlc-origin-point
Use wlc_point instead of deprecated wlc_origin
Diffstat (limited to 'sway')
-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) {
break;
}
}
-
+
for (i = 0; i < desktop_shell.panels->length; ++i) {
struct panel_config *config = desktop_shell.panels->items[i];
if (config->output == output) {
@@ -92,16 +92,16 @@ static void handle_output_pre_render(wlc_handle output) {
};
switch (desktop_shell.panel_position) {
case DESKTOP_SHELL_PANEL_POSITION_TOP:
- geo.origin = (struct wlc_origin){ 0, 0 };
+ geo.origin = (struct wlc_point){ 0, 0 };
break;
case DESKTOP_SHELL_PANEL_POSITION_BOTTOM:
- geo.origin = (struct wlc_origin){ 0, resolution.h - size.h };
+ geo.origin = (struct wlc_point){ 0, resolution.h - size.h };
break;
case DESKTOP_SHELL_PANEL_POSITION_LEFT:
- geo.origin = (struct wlc_origin){ 0, 0 };
+ geo.origin = (struct wlc_point){ 0, 0 };
break;
case DESKTOP_SHELL_PANEL_POSITION_RIGHT:
- geo.origin = (struct wlc_origin){ resolution.w - size.w, 0 };
+ geo.origin = (struct wlc_point){ resolution.w - size.w, 0 };
break;
}
wlc_surface_render(config->surface, &geo);