Style fixes
This commit is contained in:
parent
618b3df051
commit
9b0196e7ed
|
@ -69,7 +69,7 @@ swayc_t *new_workspace(swayc_t * output, const char *name) {
|
|||
workspace->layout = L_HORIZ; // TODO:default layout
|
||||
workspace->width = output->width;
|
||||
workspace->height = output->height;
|
||||
workspace->name = strdup(name);
|
||||
workspace->name = strdup(name);
|
||||
workspace->visible = true;
|
||||
|
||||
add_child(output, workspace);
|
||||
|
@ -82,10 +82,10 @@ swayc_t *new_container(swayc_t *child, enum swayc_layouts layout) {
|
|||
sway_log(L_DEBUG, "creating container %p around %p", cont, child);
|
||||
|
||||
cont->layout = layout;
|
||||
cont->width = child->width;
|
||||
cont->width = child->width;
|
||||
cont->height = child->height;
|
||||
cont->x = child->x;
|
||||
cont->y = child->y;
|
||||
cont->x = child->x;
|
||||
cont->y = child->y;
|
||||
cont->visible = child->visible;
|
||||
|
||||
swayc_t *parent = replace_child(child, cont);
|
||||
|
|
|
@ -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 *focused = get_focused_container(&root_container);
|
||||
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);
|
||||
unfocus_all(&root_container);
|
||||
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
|
||||
// is in the same output & c_views in the new workspace to the visible mask
|
||||
|
||||
container_map(c_workspace, set_mask, &mask);
|
||||
mask = 2;
|
||||
container_map(workspace, set_mask, &mask);
|
||||
wlc_output_set_mask(wlc_get_focused_output(), 2);
|
||||
|
||||
|
||||
//wlc_output_set_mask(wlc_get_focused_output(), 2);
|
||||
unfocus_all(&root_container);
|
||||
focus_view(workspace);
|
||||
|
||||
|
|
Loading…
Reference in a new issue