raboof/volare
6
22
Fork
You've already forked volare
2

Dragging a tab to 'its own' frame makes it disappear #42

Closed
opened 2023年06月08日 14:09:18 +02:00 by raboof · 3 comments

When I use the mouse to drag a window by its tab, but instead of dropping it in a different frame I drop it in the frame where it already is, it disappears.

When I use the mouse to drag a window by its tab, but instead of dropping it in a different frame I drop it in the frame where it already is, it disappears.
Collaborator
Copy link

I tried to replicate this but couldn't. Any further details, or anything interesting in the logging output when running with --debug? Does it happen all the time? Any other windows in the same frame, or other frames? Is the tabbed container inside another split container?

Output of swaymsg -t get_workspaces before/after might be helpful, also volare --version (shows the git commit/branch name).

If it's replicable, I would guess the function handle_motion_postthreshold() in sway/input/seatop_move_tiling.c might be implicated. There were a couple of commits changing the behavior of that function in the empty tabbed containers PR, a1385310c and 4d4611f80. There might be another corner case that we need to handle in that function, or those added conditions need to be refined. We might need an explicit check that the container being dragged is not the same as the node under the mouse cursor, or something like that.

I tried to replicate this but couldn't. Any further details, or anything interesting in the logging output when running with `--debug`? Does it happen all the time? Any other windows in the same frame, or other frames? Is the tabbed container inside another split container? Output of `swaymsg -t get_workspaces` before/after might be helpful, also `volare --version` (shows the git commit/branch name). If it's replicable, I would guess the function `handle_motion_postthreshold()` in `sway/input/seatop_move_tiling.c` might be implicated. There were a couple of commits changing the behavior of that function in the empty tabbed containers PR, a1385310c and 4d4611f80. There might be another corner case that we need to handle in that function, or those added conditions need to be refined. We might need an explicit check that the container being dragged is not the same as the node under the mouse cursor, or something like that.
Collaborator
Copy link

The first commit in #43 should fix this, and the second commit shouldn't hurt.

The first commit in #43 should fix this, and the second commit shouldn't hurt.
Author
Owner
Copy link

also volare --version (shows the git commit/branch name).

Hmm, it doesn't for me - perhaps because I'm building as a Nix flake? Filed #44

> also `volare --version` (shows the git commit/branch name). Hmm, it doesn't for me - perhaps because I'm building as a Nix flake? Filed #44
Sign in to join this conversation.
No Branch/Tag specified
main
prepare-for-1.11
volare-1.10
multi-system
prepare-for-0.10
volare-1.9
fix-config-examples
prepare-for-1.9
rebase-on-1.9
volare-1.8.0.x
fix-ci
test
config
flake-enable-debugging
avoid_unsplit_crash
move
move-tab-config-syntax
move-tab
implement-unsplit
build-on-ci
versioning
sway-replacement-non-goal
document-branching-strategy
drop-issue-templates
look
wallpaper
renames
remove-toggle-split
update-to-1.8
update-to-1.8-branch-off-point
unsplit
second_test
v1.11.0.0
v1.10.1.0
1.10.1
1.10
1.10-rc4
1.10-rc3
1.10-rc2
1.10-rc1
v1.9.0.0
1.9
1.9-rc4
1.9-rc3
1.9-rc2
1.9-rc1
v1.8.1.0
1.8.1
1.8
1.8-rc4
1.8-rc3
1.8-rc2
1.8-rc1
1.7
1.7-rc3
1.7-rc2
1.7-rc1
1.6.1
1.6
1.6-rc3
1.6-rc2
1.6-rc1
1.5.1
1.5
v1.5-rc2
1.5-rc1
1.4
1.3-rc3
1.3-rc2
1.3-rc1
1.2
1.2-rc2
1.2-rc1
1.1.1
1.1
1.1-rc3
1.1-rc2
1.1-rc1
1.0
1.0-rc5
1.0-rc4
1.0-rc3
1.0-rc2
1.0-rc1
1.0-beta.2
1.0-beta.1
1.0-alpha.6
1.0-alpha.5
1.0-alpha.4
1.0-alpha.3
1.0-alpha.2
1.0-alpha.1
0.15-rc1
0.14-rc1
0.13-rc1
0.12-rc1
0.11
0.11-rc3
0.11-rc2
0.11-rc1
0.10-rc1
0.9
0.9-rc3
0.9-rc2
0.9-rc1
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
raboof/volare#42
Reference in a new issue
raboof/volare
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?