Style fixes
This commit is contained in:
parent
618b3df051
commit
9b0196e7ed
|
@ -192,9 +192,6 @@ static bool handle_pointer_motion(wlc_handle view, uint32_t time, const struct w
|
||||||
swayc_t *c = find_container(&root_container, pointer_test, (void *)origin);
|
swayc_t *c = find_container(&root_container, pointer_test, (void *)origin);
|
||||||
swayc_t *focused = get_focused_container(&root_container);
|
swayc_t *focused = get_focused_container(&root_container);
|
||||||
if (c && c != focused) {
|
if (c && c != focused) {
|
||||||
sway_log(L_DEBUG, "Mouse pointer at X: %d, Y: %d", origin->x, origin->y);
|
|
||||||
sway_log(L_DEBUG, "Container to focus on is at X: %d, Y: %d, with W: %d, H: %d", c->x, c->y, c->width, c->height);
|
|
||||||
sway_log(L_DEBUG, "Focused container is at X: %d, Y: %d, with W: %d, H: %d", c->x, c->y, c->width, c->height);
|
|
||||||
sway_log(L_DEBUG, "Switching focus to %p", c);
|
sway_log(L_DEBUG, "Switching focus to %p", c);
|
||||||
unfocus_all(&root_container);
|
unfocus_all(&root_container);
|
||||||
focus_view(c);
|
focus_view(c);
|
||||||
|
|
|
@ -106,14 +106,11 @@ void workspace_switch(swayc_t *workspace) {
|
||||||
|
|
||||||
// set all c_views in the old workspace to the invisible mask if the workspace
|
// set all c_views in the old workspace to the invisible mask if the workspace
|
||||||
// is in the same output & c_views in the new workspace to the visible mask
|
// is in the same output & c_views in the new workspace to the visible mask
|
||||||
|
|
||||||
container_map(c_workspace, set_mask, &mask);
|
container_map(c_workspace, set_mask, &mask);
|
||||||
mask = 2;
|
mask = 2;
|
||||||
container_map(workspace, set_mask, &mask);
|
container_map(workspace, set_mask, &mask);
|
||||||
wlc_output_set_mask(wlc_get_focused_output(), 2);
|
wlc_output_set_mask(wlc_get_focused_output(), 2);
|
||||||
|
|
||||||
|
|
||||||
//wlc_output_set_mask(wlc_get_focused_output(), 2);
|
|
||||||
unfocus_all(&root_container);
|
unfocus_all(&root_container);
|
||||||
focus_view(workspace);
|
focus_view(workspace);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue