diff options
author | 2015-12-01 21:04:34 +0100 | |
---|---|---|
committer | 2015-12-01 21:04:34 +0100 | |
commit | 3658777e47ea543267d0acb099c70e65bb0741b6 (patch) | |
tree | d4b2ee6af00271c86482552e7003b1e5adc06b27 /sway | |
parent | Merge pull request #284 from gpyh/master (diff) | |
download | sway-3658777e47ea543267d0acb099c70e65bb0741b6.tar.gz sway-3658777e47ea543267d0acb099c70e65bb0741b6.tar.zst sway-3658777e47ea543267d0acb099c70e65bb0741b6.zip |
Use wlc_point instead of deprecated wlc_origin
Struct was renamed in wlc, use the new name.
Diffstat (limited to 'sway')
-rw-r--r-- | sway/handlers.c | 10 |
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); |