aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar taiyu <taiyu.len@gmail.com>2015-08-19 11:15:13 -0700
committerLibravatar taiyu <taiyu.len@gmail.com>2015-08-19 11:15:13 -0700
commite53a95c60d281ab751e05f4af43eb117ab0880be (patch)
tree1db4c9a93f22bedbdbbd7fac0572dbae252c2ccf
parentreset floating view on floating_mod repress (diff)
downloadsway-e53a95c60d281ab751e05f4af43eb117ab0880be.tar.gz
sway-e53a95c60d281ab751e05f4af43eb117ab0880be.tar.zst
sway-e53a95c60d281ab751e05f4af43eb117ab0880be.zip
style
-rw-r--r--sway/handlers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 46d1fff5..f7d5386a 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -258,7 +258,7 @@ static void handle_view_focus(wlc_handle view, bool focus) {
258 258
259static void handle_view_geometry_request(wlc_handle handle, const struct wlc_geometry *geometry) { 259static void handle_view_geometry_request(wlc_handle handle, const struct wlc_geometry *geometry) {
260 sway_log(L_DEBUG, "geometry request %d x %d : %d x %d", 260 sway_log(L_DEBUG, "geometry request %d x %d : %d x %d",
261 geometry->origin.x, geometry->origin.y, geometry->size.w,geometry->size.h); 261 geometry->origin.x, geometry->origin.y, geometry->size.w, geometry->size.h);
262 // If the view is floating, then apply the geometry. 262 // If the view is floating, then apply the geometry.
263 // Otherwise save the desired width/height for the view. 263 // Otherwise save the desired width/height for the view.
264 // This will not do anything for the time being as WLC improperly sends geometry requests 264 // This will not do anything for the time being as WLC improperly sends geometry requests
@@ -279,12 +279,12 @@ static void handle_view_geometry_request(wlc_handle handle, const struct wlc_geo
279 279
280static void handle_view_state_request(wlc_handle view, enum wlc_view_state_bit state, bool toggle) { 280static void handle_view_state_request(wlc_handle view, enum wlc_view_state_bit state, bool toggle) {
281 swayc_t *c = NULL; 281 swayc_t *c = NULL;
282 switch(state) { 282 switch (state) {
283 case WLC_BIT_FULLSCREEN: 283 case WLC_BIT_FULLSCREEN:
284 // i3 just lets it become fullscreen 284 // i3 just lets it become fullscreen
285 wlc_view_set_state(view, state, toggle); 285 wlc_view_set_state(view, state, toggle);
286 c = get_swayc_for_handle(view, &root_container); 286 c = get_swayc_for_handle(view, &root_container);
287 sway_log(L_DEBUG, "setting view %ld %s, fullscreen %d",view,c->name,toggle); 287 sway_log(L_DEBUG, "setting view %ld %s, fullscreen %d", view, c->name, toggle);
288 if (c) { 288 if (c) {
289 arrange_windows(c->parent, -1, -1); 289 arrange_windows(c->parent, -1, -1);
290 // Set it as focused window for that workspace if its going fullscreen 290 // Set it as focused window for that workspace if its going fullscreen
@@ -316,7 +316,7 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier
316 } 316 }
317 bool cmd_success = false; 317 bool cmd_success = false;
318 318
319 if ((modifiers->mods & config->floating_mod) && (dragging||resizing)) { 319 if ((modifiers->mods & config->floating_mod) && (dragging || resizing)) {
320 reset_floating(get_focused_view(&root_container)); 320 reset_floating(get_focused_view(&root_container));
321 } 321 }
322 322