mirror of
https://github.com/swaywm/sway.git
synced 2025-11-14 06:59:47 -05:00
more changes
This commit is contained in:
parent
4606fb1ee3
commit
63bc0d3b54
5 changed files with 19 additions and 13 deletions
|
|
@ -38,6 +38,9 @@ static bool pointer_test(swayc_t *view, void *_origin) {
|
|||
|
||||
swayc_t *container_under_pointer(void) {
|
||||
//root.output->workspace
|
||||
if (!root_container.focused || !root_container.focused->focused) {
|
||||
return NULL;
|
||||
}
|
||||
swayc_t *lookup = root_container.focused->focused;
|
||||
//Case of empty workspace
|
||||
if (lookup->children == 0) {
|
||||
|
|
@ -174,9 +177,6 @@ static void handle_view_destroyed(wlc_handle handle) {
|
|||
if (view) {
|
||||
swayc_t *parent = destroy_view(view);
|
||||
arrange_windows(parent, -1, -1);
|
||||
if (!focused || focused == view) {
|
||||
set_focused_container(container_under_pointer());
|
||||
}
|
||||
}
|
||||
break;
|
||||
//takes keyboard focus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue