diff options
author | 2015-08-18 00:58:25 -0700 | |
---|---|---|
committer | 2015-08-18 00:58:25 -0700 | |
commit | f0fe4a346d46b2033d8ceff9b06b558d82f51f6d (patch) | |
tree | 9d2ce59b3f3c0590cdf8ceb4ce1aefd193bb8033 /sway | |
parent | changed handling of focus, handling of view by type (diff) | |
download | sway-f0fe4a346d46b2033d8ceff9b06b558d82f51f6d.tar.gz sway-f0fe4a346d46b2033d8ceff9b06b558d82f51f6d.tar.zst sway-f0fe4a346d46b2033d8ceff9b06b558d82f51f6d.zip |
style
Diffstat (limited to 'sway')
-rw-r--r-- | sway/handlers.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 99f597af..d18be253 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -192,7 +192,7 @@ static void handle_view_focus(wlc_handle view, bool focus) { | |||
192 | 192 | ||
193 | static void handle_view_geometry_request(wlc_handle handle, const struct wlc_geometry* geometry) { | 193 | static void handle_view_geometry_request(wlc_handle handle, const struct wlc_geometry* geometry) { |
194 | sway_log(L_DEBUG, "geometry request %d x %d : %d x %d", | 194 | sway_log(L_DEBUG, "geometry request %d x %d : %d x %d", |
195 | geometry->origin.x, geometry->origin.y, geometry->size.w, geometry->size.h); | 195 | geometry->origin.x, geometry->origin.y, geometry->size.w,geometry->size.h); |
196 | // If the view is floating, then apply the geometry. | 196 | // If the view is floating, then apply the geometry. |
197 | // Otherwise save the desired width/height for the view. | 197 | // Otherwise save the desired width/height for the view. |
198 | // This will not do anything for the time being as WLC improperly sends geometry requests | 198 | // This will not do anything for the time being as WLC improperly sends geometry requests |
@@ -213,12 +213,12 @@ static void handle_view_geometry_request(wlc_handle handle, const struct wlc_geo | |||
213 | 213 | ||
214 | static void handle_view_state_request(wlc_handle view, enum wlc_view_state_bit state, bool toggle) { | 214 | static void handle_view_state_request(wlc_handle view, enum wlc_view_state_bit state, bool toggle) { |
215 | swayc_t *c = NULL; | 215 | swayc_t *c = NULL; |
216 | switch (state) { | 216 | switch(state) { |
217 | case WLC_BIT_FULLSCREEN: | 217 | case WLC_BIT_FULLSCREEN: |
218 | //I3 just lets it become fullscreen | 218 | //I3 just lets it become fullscreen |
219 | wlc_view_set_state(view, state, toggle); | 219 | wlc_view_set_state(view, state, toggle); |
220 | c = get_swayc_for_handle(view, &root_container); | 220 | c = get_swayc_for_handle(view, &root_container); |
221 | sway_log(L_DEBUG, "setting view %ld %s, fullscreen %d", view, c->name, toggle); | 221 | sway_log(L_DEBUG, "setting view %ld %s, fullscreen %d",view,c->name,toggle); |
222 | if (c) { | 222 | if (c) { |
223 | arrange_windows(c->parent, -1, -1); | 223 | arrange_windows(c->parent, -1, -1); |
224 | //Set it as focused window for that workspace if its going | 224 | //Set it as focused window for that workspace if its going |