aboutsummaryrefslogtreecommitdiff
path: root/sway/input
AgeCommit message (Collapse)Author
2018-06-03Fix seat_get_active_childRyan Dwyer
seat_get_active_child is used for tabbed and stacked containers to get the active child. The previous implementation used seat_get_focus_inactive then ascended the tree to the child of the tabbed/stacked container, but this fails when the workspace itself is stacked or tabbed and the most recently active child is floating. The new implementation takes a more simple approach, where it directly scans the focus stack for the first immediate child which isn't the floating container. Fixes #2098.
2018-06-02Make command block implementation genericBrian Ashworth
2018-06-01Style fix, redundant entry removal, fix extra keysym deletefrsfnrrg
2018-06-01Rename update_shortcut_model to update_shortcut_statefrsfnrrg
2018-06-01Rename check_shortcut_model to get_active_bindingfrsfnrrg
2018-06-01Style fixed for keyboard.cfrsfnrrg
2018-06-01Remove almost-always redundant loop in key handlingfrsfnrrg
2018-06-01Rewrite shortcut handling code to avoid hardcoded valuesfrsfnrrg
The same shortcut algorithm is now used for keycodes, raw keysyms, and translated keysyms. Pressed keysyms are now stored in association with the keycodes that generated them. Modifier keycodes (and associated keysyms) are identified retroactively by the subsequent change to the modifier flags.
2018-06-01Fix mouse warping interaction with layout coordsDrew DeVault
2018-06-01Store swayc coordinates as layout-localRyan Dwyer
2018-06-01Implement floatingRyan Dwyer
2018-05-28Fix ancestor typosRyan Dwyer
2018-05-27Merge pull request #2050 from smlx/focus-fixDrew DeVault
Focus containers only on entry.
2018-05-27Implement bindsym/bindcode --lockedfrsfnrrg
Adds the --locked flag to bindsym and bindcode commands. When a keyboard's associated seat has an exclusive client (i.e, a screenlocker), then bindings are only executed if they have the locked flag. When there is no such client, this restriction is lifted.
2018-05-28Improve comment.Scott Leggett
2018-05-28Avoid assert on container type.Scott Leggett
2018-05-28Move previous cursor_position inline.Scott Leggett
2018-05-28Remove unused function.Scott Leggett
2018-05-28Simplify logic, remove redundant variables.Scott Leggett
2018-05-28Rely on view_is_visible rather thank walking the tree ourselves.Scott Leggett
2018-05-28Store previous position in sway_cursor.Scott Leggett
2018-05-27Focus containers only on entry.Scott Leggett
2018-05-26Replace oft-failing abort with if statementDrew DeVault
Fixes #2045
2018-05-26Check for next_focus before assertIvan Chebykin
2018-05-26Fix usage of sway_assertIvan Chebykin
2018-05-26Moved visibility check of of loop, added assertsIvan Chebykin
2018-05-25Break after first tabbed/stacked layoutIvan Chebykin
2018-05-25Fix mouse focusing for horizontal/vertical views in tabbed containersIvan Chebykin
2018-05-25Fixed styling issuesIvan Chebykin
2018-05-25Focus inactive container instead of checking cursor positionIvan Chebykin
2018-05-25Skip all nested containersIvan Chebykin
2018-05-25Implement correct focusing for tabbed containersIvan Chebykin
2018-05-25Fix focusing from other containersIvan Chebykin
2018-05-25Don't focus tabbed and stacked containers on mouseoverIvan Chebykin
2018-05-21Fix focus follows mouse with no focusDrew DeVault
2018-05-21Don't track damage for views on inactive tabsRyan Dwyer
2018-05-21Implement tabbed layoutRyan Dwyer
2018-05-20Fix border commands from changing focusBrian Ashworth
2018-05-20Fix focus_follows_mouse over swaybarDrew 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-13Idle handling for dpms/lockscreen et alMattias 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-12Send pointer discrete axis values and sourceemersion
Update for swaywm/wlroots#970
2018-05-11Highlight all child borders when using focus parentRyan Dwyer
2018-05-10Damage container on focusemersion
2018-05-03Merge pull request #1907 from emersion/backend-input-mappingDrew DeVault
Default to backend-wise input device mapping, if any
2018-05-03Hide cursor on touch downDrew DeVault
2018-05-03Default to backend-wise input device mapping, if anyemersion
2018-05-02Implement basic touch supportDrew 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-29Merge branch 'master' into refactor-arrange-windowsemersion
2018-04-28Refactor arrange_windows()Ryan Dwyer
Replaces arrange_windows() with arrange_root(), arrange_output(), arrange_workspace() and arrange_children_of(). Also makes fullscreen views save and restore their dimensions, which allows it to preserve any custom resize and is also a requirement for floating views once they are implemented.
2018-04-27Update for swaywm/wlroots#923emersion