mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
Initial work on window events
This commit is contained in:
parent
095353d91d
commit
976e48d79f
7 changed files with 34 additions and 0 deletions
|
|
@ -91,6 +91,7 @@ void add_floating(swayc_t *ws, swayc_t *child) {
|
|||
if (!ws->focused) {
|
||||
ws->focused = child;
|
||||
}
|
||||
ipc_event_window(child, "floating");
|
||||
}
|
||||
|
||||
swayc_t *add_sibling(swayc_t *fixed, swayc_t *active) {
|
||||
|
|
@ -305,6 +306,7 @@ void move_container(swayc_t *container, enum movement_direction dir) {
|
|||
parent = child->parent;
|
||||
}
|
||||
arrange_windows(parent->parent, -1, -1);
|
||||
ipc_event_window(container, "move");
|
||||
set_focused_container_for(parent->parent, container);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue