mirror of
https://github.com/swaywm/sway.git
synced 2025-11-10 13:29:51 -05:00
style
This commit is contained in:
parent
b8cba33c01
commit
60d840fe3f
2 changed files with 4 additions and 4 deletions
|
|
@ -31,7 +31,7 @@ void add_child(swayc_t *parent, swayc_t *child) {
|
|||
child->width, child->height, parent, parent->type, parent->width, parent->height);
|
||||
list_add(parent->children, child);
|
||||
child->parent = parent;
|
||||
if(parent->focused == NULL) {
|
||||
if (parent->focused == NULL) {
|
||||
parent->focused = child;
|
||||
}
|
||||
}
|
||||
|
|
@ -118,7 +118,7 @@ void arrange_windows(swayc_t *container, int width, int height) {
|
|||
};
|
||||
if (wlc_view_get_state(container->handle) & WLC_BIT_FULLSCREEN) {
|
||||
swayc_t *parent = container;
|
||||
while(parent->type != C_OUTPUT) {
|
||||
while (parent->type != C_OUTPUT) {
|
||||
parent = parent->parent;
|
||||
}
|
||||
geometry.origin.x = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue