Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-07-22 | Consider view's min/max sizes when resizing | Ryan Dwyer | |
2018-07-22 | Store last button and use it when views request to move or resize | Ryan Dwyer | |
2018-07-22 | Prevent re-uploading the same cursor image multiple times | Ryan Dwyer | |
2018-07-22 | Replace static handle_end_operation with seat_end_mouse_operation | Ryan Dwyer | |
2018-07-22 | Implement xdg shell request_move and request_resize events | Ryan Dwyer | |
Also does a few other related things: * Now uses enum wlr_edges instead of our own enum resize_edge * Now uses wlr_xcursor_get_resize_name and removes our own find_resize_edge_name * Renames drag to move for consistency | |||
2018-07-22 | Use wlr_keyboard_get_modifiers | Ryan Dwyer | |
2018-07-22 | Use separate function for choosing edge cursor | Ryan Dwyer | |
2018-07-22 | Fix clicking xwayland menus | Ryan Dwyer | |
2018-07-22 | Use max multiplier when resizing while preserving ratio | Ryan Dwyer | |
2018-07-22 | Make mod + resize do it from the top left corner | Ryan Dwyer | |
2018-07-22 | Use WLR_MODIFIER_SHIFT | Ryan Dwyer | |
2018-07-22 | Implement floating_modifier and mouse operations for floating views | Ryan Dwyer | |
This implements the following: * `floating_modifier` configuration directive * Drag a floating window by its title bar * Hold mod + drag a floating window from anywhere * Resize a floating view by dragging the border * Resize a floating view by holding mod and right clicking anywhere on the view * Resize a floating view and keep aspect ratio by holding shift while resizing using either method * Mouse cursor turns into resize when hovering floating border or corner | |||
2018-07-19 | Fix crash and render issues involving cursor_send_pointer_motion | Ryan Dwyer | |
Fixes #2303, as well as a crash. To replicate the crash: * Have multiple outputs * In config: for_window [<criteria>] workspace foo * Also in config: workspace foo output <left-output-name> * Focus the right output, and ensure workspace foo doesn't exist * Launch the app that triggers the criteria When the view maps, it calls workspace_switch which calls send_set_focus which calls cursor_send_pointer_motion which calls transaction_commit_dirty. This call to transaction_commit_dirty is not meant to happen at this time because the tree isn't guaranteed to be in a consistent state, but I'm not sure how exactly this leads to the crash or render issues. In this case the transaction is already committed by the view implementation's handle_map function. So the solution is to remove it from cursor_send_pointer_motion and add it to the other functions in cursor.c which call cursor_send_pointer_motion. | |||
2018-07-15 | Make focus part of transactions | Ryan Dwyer | |
Rather than maintain copies of the entire focus stack, this PR transactionises the focus by introducing two new properties to the container state and using those when rendering. * `bool focused` means this container has actual focus. Only one container should have this equalling true in its current state. * `struct sway_container *focus_inactive_child` points to the immediate child that was most recently focused (eg. for tabbed and stacked containers). | |||
2018-07-09 | Update for swaywm/wlroots#1126 | emersion | |
2018-07-05 | Fix pointer button events for layer surfaces | Brian Ashworth | |
2018-06-24 | dont focus-follow-mouse when keyboard grab | Tony Crisci | |
2018-06-09 | Render drag icons | emersion | |
2018-06-06 | Initialise previous cursor position. | Scott Leggett | |
Fix the problem with focus jumping to the container under the cursor when first starting sway. | |||
2018-06-04 | Don't set focus to NULL when clicking a surface which has no container | Ryan Dwyer | |
2018-06-01 | Store swayc coordinates as layout-local | Ryan Dwyer | |
2018-06-01 | Implement floating | Ryan Dwyer | |
2018-05-28 | Improve comment. | Scott Leggett | |
2018-05-28 | Avoid assert on container type. | Scott Leggett | |
2018-05-28 | Move previous cursor_position inline. | Scott Leggett | |
2018-05-28 | Simplify logic, remove redundant variables. | Scott Leggett | |
2018-05-28 | Rely on view_is_visible rather thank walking the tree ourselves. | Scott Leggett | |
2018-05-28 | Store previous position in sway_cursor. | Scott Leggett | |
2018-05-27 | Focus containers only on entry. | Scott Leggett | |
2018-05-26 | Replace oft-failing abort with if statement | Drew DeVault | |
Fixes #2045 | |||
2018-05-26 | Check for next_focus before assert | Ivan Chebykin | |
2018-05-26 | Fix usage of sway_assert | Ivan Chebykin | |
2018-05-26 | Moved visibility check of of loop, added asserts | Ivan Chebykin | |
2018-05-25 | Break after first tabbed/stacked layout | Ivan Chebykin | |
2018-05-25 | Fix mouse focusing for horizontal/vertical views in tabbed containers | Ivan Chebykin | |
2018-05-25 | Fixed styling issues | Ivan Chebykin | |
2018-05-25 | Focus inactive container instead of checking cursor position | Ivan Chebykin | |
2018-05-25 | Skip all nested containers | Ivan Chebykin | |
2018-05-25 | Implement correct focusing for tabbed containers | Ivan Chebykin | |
2018-05-25 | Fix focusing from other containers | Ivan Chebykin | |
2018-05-25 | Don't focus tabbed and stacked containers on mouseover | Ivan Chebykin | |
2018-05-21 | Fix focus follows mouse with no focus | Drew DeVault | |
2018-05-21 | Implement tabbed layout | Ryan Dwyer | |
2018-05-20 | Fix border commands from changing focus | Brian Ashworth | |
2018-05-20 | Fix focus_follows_mouse over swaybar | Drew DeVault | |
If you moved your mouse over swaybar (e.g. to scroll between workspaces), focus would move to the workspace. This is not the right thing to do. The solution is complicated by the fact that if you move your mouse into a new output with an empty workspace, that workspace _should_ receive focus. | |||
2018-05-13 | Idle handling for dpms/lockscreen et al | Mattias Eriksson | |
Swayidle handles idle events and allows for dpms and lockscreen handling. It also handles systemd sleep events, and can raise a lockscreen on sleep Fixes #541 | |||
2018-05-12 | Send pointer discrete axis values and source | emersion | |
Update for swaywm/wlroots#970 | |||
2018-05-03 | Hide cursor on touch down | Drew DeVault | |
2018-05-02 | Implement basic touch support | Drew DeVault | |
This required changing container_at_cursor to container_at_coords so that we could get the appropriate surface (and sx/xy) without moving the cursor. Future work: - Simulate a cursor for clients which have not bound to wl_touch - Keep sending motion events when moving outside the surface (#1892) - Bind gestures to sway commands | |||
2018-04-27 | Update for swaywm/wlroots#923 | emersion | |