592 Commits (9c93e1c0ce53fb7776ff29129b53b12694d9abff)

Author SHA1 Message Date
Rouven Czerwinski d69cf4c23c seat: use new warping functions for cursor warping during focus warp
6 years ago
Rouven Czerwinski 0969bf758b cursor: functions to warp cursor to container and workspace
6 years ago
Ryan Dwyer 05284b65db Prevent duplicate workspace::focus events
6 years ago
Ryan Dwyer 26278b694c Introduce seat_set_raw_focus and remove notify argument from seat_set_focus_warp
6 years ago
Ian Fan 2f1fd80726 swaybar: show hidden bar on key event
6 years ago
Thiago Mendes 8e147b3f1d
Add libinput send_events config for touch
6 years ago
Drew DeVault 5d19906556
Merge pull request #2806 from v-gu/add-libinput-support-for-keyboard
6 years ago
Ryan Dwyer ed33d95b6a
Merge branch 'master' into mouse-warping-container
6 years ago
Rouven Czerwinski 41991542ca Add mouse_warping container
6 years ago
Ryan Dwyer 416bb7a214 Fix floating click events
6 years ago
Vincent Gu 073aa4149f add libinput config for keyboard
6 years ago
Ryan Dwyer f23588de3c Introduce container_is_transient_for
6 years ago
Ryan Dwyer 832ebc8966 Implement popup_during_fullscreen
6 years ago
Ryan Dwyer 88a5e26c6e Remove unneeded variable
6 years ago
Ryan Dwyer 82423991a8 Reload config using idle event
6 years ago
Ryan Dwyer c620f76bea Move sticky containers when switching workspace via criteria
6 years ago
Ryan Dwyer 44b550298e Fix crash when flattening container after moving
6 years ago
Drew DeVault eecebcafc6 Fix #2763
6 years ago
emersion 0d5c2f75b5
Merge pull request #2760 from RyanDwyer/swaylock-handle-output-disconnect
6 years ago
Ryan Dwyer 4feedbf7cf Ignore unrelated cursor buttons while doing seat operations
6 years ago
Ryan Dwyer 32cb631143 Give focus to another swaylock surface when output is disconnected
6 years ago
Jonathan Buch 7727d54faf
Fix focusing topmost floating windows
6 years ago
Jonathan Buch ec713125c6
Simplify raising a container in seat
6 years ago
Jonathan Buch 298ccb539c
Add configuration for raising containers on focus
6 years ago
Ryan Dwyer 5dd535b67a Add sanity check for empty focus stack
6 years ago
Drew DeVault 06c214a800
Merge pull request #2703 from RyanDwyer/csd-border
6 years ago
Ryan Dwyer 677e112733 Set focus_inactive on a sibling when a container closes in an inactive workspace
6 years ago
Brian Ashworth 742d1764a6 Fix smart gaps
6 years ago
Drew DeVault 8f6aca2166
Merge pull request #2725 from PumbaPe/add-tap-and-drag
6 years ago
Arkadiusz Hiler 1e70f7b19e Turn funcs() into funcs(void)
6 years ago
emersion a53171669a
Merge pull request #2698 from ianyfan/hide-cursor
6 years ago
PP ae2b70f59e add tap-and-drag setting to sway-input
6 years ago
Ryan Dwyer 7b138e5ef0 Add CSD to border modes
6 years ago
Drew DeVault 5912be46c3
Merge pull request #2704 from ianyfan/tablet-config
6 years ago
Alexander Bakker d129108cdd Add a missing null check for moving tiling containers
6 years ago
Ian Fan 6194a445d3 input: enable configuring tablets with libinput
6 years ago
Ian Fan a10fef9ae8 cursor: allow cursor_set_image to accept a NULL image to hide cursor
6 years ago
Ian Fan dafb0526d7 seat: only show cursor if pointer configured
6 years ago
Brian Ashworth baeb28ea62 Implement support for input wildcard
6 years ago
Ryan Dwyer 271b24ddfb Fix GtkMenuBar always opening first item
6 years ago
Ryan Dwyer bf5933c501 Implement tab cycling using mouse wheel
6 years ago
Ryan Dwyer f6e218a643 Rename seat_get_active_child to seat_get_active_tiling_child
6 years ago
Ryan Dwyer 48bc15e758 Make seat_get_active_child ignore floating children
6 years ago
emersion 7699c5444c Update for swaywm/wlroots#1243
6 years ago
Ryan Dwyer 679c7eb08c Minor fixes to tiling drag implementation
6 years ago
Ryan Dwyer 403905c11b Fix line length
6 years ago
Ryan Dwyer 8bb40c24c7 Implement tiling drag
6 years ago
Ryan Dwyer d4e80cf301 Rename OP_MOVE to OP_MOVE_FLOATING
6 years ago
Drew DeVault 030b5bc024
Merge pull request #2603 from emersion/fix-dnd
6 years ago
emersion 251a7ebc4b Fix drag-and-drop
6 years ago
Ryan Dwyer 763554e1be Fix workspace switching
6 years ago
Ryan Dwyer f30527e0cd Don't dirty outputs unnecessarily
6 years ago
Ryan Dwyer 5896781df4 Make outputs dirty when changing focus
6 years ago
Ryan Dwyer 908095ef9a Introduce seat_set_focus_container and seat_set_focus_workspace
6 years ago
emersion bea9f9c63f
Merge pull request #2578 from RyanDwyer/fix-binding-reload
6 years ago
Ryan Dwyer 5cc70d1dfd Restore focus correctly when closing a fullscreen view
6 years ago
Ryan Dwyer 32c7386b0f Fix management of bindings during reload
6 years ago
Ryan Dwyer 6f71749398 Fix clicking workspace buttons
6 years ago
Ryan Dwyer e5c9204b49 Focus empty workspace when clicking it
6 years ago
Ryan Dwyer 4e0452fce3 Fix scratchpad related crashes
6 years ago
Ryan Dwyer fb9b0f7a08 Fix focus bug
6 years ago
Ryan Dwyer eccfcde2eb Fix crash when moving mouse over a fullscreen split container
6 years ago
Ryan Dwyer 2aa6afae54 Fix mouse_warping
6 years ago
Ryan Dwyer 7586f150c0 Implement type safe arguments and demote sway_container
6 years ago
Ryan Dwyer 7797490e9e Deny repeating reload by holding key
6 years ago
Drew DeVault 80270ba086
Merge pull request #2544 from RyanDwyer/fix-deferred-cmd-crash
6 years ago
Ryan Dwyer dce549c537 Don't send never-ending transactions when a focused layer surface commits
6 years ago
Ryan Dwyer 1e0459f7f7 Fix crash when running deferred commands
6 years ago
Ian Fan 3bf849d993 seat.c: clean-up seat_set_focus_warp function
6 years ago
Ryan Dwyer 5dbbab7bdc Remove layout.c
6 years ago
Ryan Dwyer b6058703fa Refactor destroy functions and save workspaces when there's no outputs
6 years ago
Ryan Dwyer f129b1b89f Replace enum resize_edge with wlr_edges
6 years ago
Ryan Dwyer 2b5a404ac9 Replace hacky L_FLOATING container with a list
6 years ago
Ryan Dwyer d6cd79c342 Implement iterators per container type
6 years ago
Drew DeVault d4a32800d5
Merge pull request #2460 from RyanDwyer/implement-mousedown
6 years ago
Ryan Dwyer d22420689d Fix mod+resize
6 years ago
Ryan Dwyer 07a897b3b7 Don't send motion if the cursor hasn't moved
6 years ago
Ryan Dwyer b637b61a7a Rename mousedown to down and make seat operation a named enum
6 years ago
Ryan Dwyer a36625a482 Implement mousedown operation
6 years ago
Ryan Dwyer 3a888163a0 Refactor seat_get_focus functions
6 years ago
Ryan Dwyer 4d023c0390 Make mod+resize a floating container resize the container itself
6 years ago
Ryan Dwyer e9d46ccbdd Use col-resize and row-resize cursor images
6 years ago
Ryan Dwyer 1893515d3a Fix right-click/popups and add state checks
6 years ago
Ryan Dwyer 2dceae6224 Allow resizing tiled views via mod key
6 years ago
Ryan Dwyer f4280e506b Refactor dispatch_cursor_button
6 years ago
Ryan Dwyer b4a0363d17 Implement resizing tiled containers via cursor
6 years ago
Drew DeVault 2aa6d98c5a
Merge pull request #2449 from RyanDwyer/remove-bfs
6 years ago
Ryan Dwyer 4ad1ccc9dc Remove container_for_each_descendant_bfs
6 years ago
Ryan Dwyer 31844bf42b Remove container_has_child
6 years ago
Ryan Dwyer f5dc3ac09d Don't call send_pointer_notify_button when doing move or resize
6 years ago
Ryan Dwyer 4c5dc6f135 Focus floating views when beginning move/resize operations
6 years ago
Ryan Dwyer a0649190de Fix edge cases when moving floating container to new workspace
6 years ago
Ryan Dwyer c17f0870ef Fix crash when moving cursor over a fullscreen split container
6 years ago
emersion b336564511 Fix pointer events for fullscreen views
6 years ago
minus e72f86784c Fix crash on mouse motion on fullscreen container
6 years ago
Ryan Dwyer 8392eae40f Revert "Revert "Fix popups""
6 years ago
Drew DeVault 9aa258d33a Revert "Fix popups"
6 years ago
Ryan Dwyer 9339026a31 Fix focus related crashes
6 years ago
Drew DeVault 9564c73c0d
Merge pull request #2391 from RyanDwyer/fix-popups-v2
6 years ago
Ian Fan 03eaf444a4 ipc: prevent emitting a workspace::focus event when moving a container to a different workspace or output
6 years ago
Ian Fan b2ac234569 ipc: fix workspace::focus event behaviour
6 years ago
Ian Fan dd1d6255f0 ipc: add window::focus event
6 years ago
chr0me 77d74dd34f XCursor is not configured if no pointer device is available
6 years ago
Ryan Dwyer 7a59508da4 Close popups when changing focus
6 years ago
Ryan Dwyer de86d65627 Fix popups
6 years ago
frsfnrrg 8dbbfa5965 Bindings use advised keyboard repeat parameters
6 years ago
frsfnrrg e33dfbfa75 Implement key repeat for pressed key bindings
6 years ago
emersion 5af776e734
Merge pull request #2376 from swaywm/virtual-keyboard
6 years ago
Drew DeVault 1e65439a54 Add virtual keyboard protocol
6 years ago
Geoff Greer 30fee94354 Don't enable numlock by default. This fixes an annoying issue where laptop keyboards would have 'numlock mode' enabled, remapping parts of the alphabet to numbers.
6 years ago
Drew DeVault 53069f1403
Merge pull request #2360 from RyanDwyer/floating-containers
6 years ago
Ryan Dwyer da2a87f6c7 When unfloating, return container to previously focused tiled container
6 years ago
Ryan Dwyer 0b6b6716e2 Fix clicking a floating split container
6 years ago
Ryan Dwyer 08cfba2192 Allow containers to float
6 years ago
Ryan Dwyer a4bcddcfdc Include errno.h
6 years ago
Ryan Dwyer d6daf10cad Show errno description in log
6 years ago
Ryan Dwyer 32663b7b01 Handle out-of-fd situations gracefully for transaction and urgent timers
6 years ago
Ryan Dwyer 27a20a4884 Allow containers to be fullscreen
6 years ago
ProgAndy 76ece5788b Fix LEDs for configured modifier states
6 years ago
ProgAndy 2166dbe2e4 Implement setting NumLock and CapsLock status
6 years ago
Drew DeVault fc718f629a
Merge pull request #2350 from ppascher/xwayland-optional
6 years ago
Pascal Pascher f95cb9a7c1 reverted includes of "sway/config.h" and replaced with "config.h" from meson build
6 years ago
Pascal Pascher 79a45d4a40 more style fixes, included "sway/config.h" where needed
6 years ago
Ryan Dwyer b14bd1b0b1 Fix crash when closing last child of a tabbed container
6 years ago
Brian Ashworth 3a75bb7f32 Change button var passed to seat_begin_move
6 years ago
Brian Ashworth dca02944ce Implement floating_modifier <mod> [inverse|normal]
6 years ago
Pascal Pascher 2bf893248a style fixes, exclude sway/desctop/xwayland.c when enable_xwayland: false
6 years ago
Pascal Pascher 24ad1c3983 Added meson option "enable_xwayland" (default: true) to enable/disable xwayland support
6 years ago
Ryan Dwyer 2f1b84a0f3 Fix crash when clicking certain surfaces
6 years ago
Ryan Dwyer e7c10f1871 Make mod+resize work in any direction
6 years ago
frsfnrrg 94dd8823a0 Invoke mouse bindings
6 years ago
frsfnrrg 754372c3de Parse mouse binding options
6 years ago
Ryan Dwyer 0db6f2ef58 Fix some cases where the cursor doesn't update
6 years ago
Brian Ashworth 44e218574f Add missing checks to fix 2339
6 years ago
Ryan Dwyer d21d4b83a3 Set cursor when beginning resize and move operations
6 years ago
Ryan Dwyer 009b426024 Fix damage when shrinking a floating view using cursor
6 years ago
Ryan Dwyer 5ba2ae9c6a Implement request_move and request_resize for xwayland views
6 years ago
Ryan Dwyer 3faceadffe Fix focus bug with floating containers
6 years ago
Ryan Dwyer 011d1ebfa4 Consider view's min/max sizes when resizing
6 years ago
Ryan Dwyer 9df660ee31 Store last button and use it when views request to move or resize
6 years ago
Ryan Dwyer 6767d8a593 Prevent re-uploading the same cursor image multiple times
6 years ago
Ryan Dwyer 0c87bff5d1 Replace static handle_end_operation with seat_end_mouse_operation
6 years ago
Ryan Dwyer ff445cc855 Implement xdg shell request_move and request_resize events
6 years ago
Ryan Dwyer 1b3b75a094 Use wlr_keyboard_get_modifiers
6 years ago
Ryan Dwyer dd337127d8 Use separate function for choosing edge cursor
6 years ago
Ryan Dwyer 350e9ea929 Fix clicking xwayland menus
6 years ago
Ryan Dwyer c299b6b5cd Use max multiplier when resizing while preserving ratio
6 years ago
Ryan Dwyer 2c6616050a Make mod + resize do it from the top left corner
6 years ago
Ryan Dwyer 3aadf944ae Use WLR_MODIFIER_SHIFT
6 years ago
Ryan Dwyer 9fbe13b9be Implement floating_modifier and mouse operations for floating views
6 years ago
Ryan Dwyer 37b33f92e8 Fix urgent timer logic and remove unnecessary header includes
6 years ago
Ryan Dwyer c2ed3d8bd6 Implement force_display_urgency_hint
6 years ago
Ryan Dwyer 8533c35a9f Fix crash and render issues involving cursor_send_pointer_motion
6 years ago
emersion 747725b8bb Don't unfocus when an override redirect window is mapped
6 years ago
emersion 03d49490cc Update cursor on focus change
6 years ago
Drew DeVault d6bd314dff
Merge pull request #2276 from RyanDwyer/urgency
6 years ago
Ryan Dwyer 9ca5cb7faf Fix tab split focus bug
6 years ago
Ryan Dwyer 315d5311b2 Implement urgency base functionality
6 years ago
Ryan Dwyer a120d4c79f Make focus part of transactions
6 years ago
Brian Ashworth 13c6627ddb Implement tap_button_map for input devices
6 years ago
Drew DeVault bcdf04d79c
Merge pull request #2252 from rkubosz/scroll-button-option
6 years ago
Ryan Dwyer ee0e1b170e Fix crash in seat code
6 years ago
Robert Kubosz 41b80c28df
add scroll button option
6 years ago
dudemanguy 600c126150 fix crash on floating windows
6 years ago
Ryan Dwyer 15dc5286e2 Move floating windows to front when focused
6 years ago
emersion 63b4bf5000
Update for swaywm/wlroots#1126
6 years ago
emersion b3c55dd909
Merge branch 'master' into leaks
6 years ago
Drew DeVault 3d2595b102
Merge branch 'master' into remove-input-fix
6 years ago
Ian Fan f63b209d51 Attach destroy handler earlier
6 years ago
Brian Ashworth c833ae64bc Fix pointer button events for layer surfaces
6 years ago
Dominique Martinet 8a771785ad keyboard: free xkb keymap on destroy
6 years ago
Ryan Dwyer 0bd41a0dae Fix focus related damage
6 years ago
Ryan Dwyer 1e4807efa0 Don't return pending children in seat_get_active_current_child
6 years ago
Ryan Dwyer a2fbb20a61 Merge remote-tracking branch 'upstream/master' into atomic
6 years ago
Armin Preiml 1eede432fc fix handling key modifiers if not pressed at first
7 years ago
Ryan Dwyer bf38081382
Merge branch 'master' into xwayland-wants-float
7 years ago
Tony Crisci e9ad10c2d6 dont focus-follow-mouse when keyboard grab
7 years ago
Ryan Dwyer 32b865e610 Fix crash when deleting last child in a tabbed or stacked container
7 years ago
emersion cda66e9a26
Automatically float xwayland windows
7 years ago
frsfnrrg ca061ba8bf Fix keyboard shortcut handling inconsistencies
7 years ago
emersion cfd02918c0
Render drag icons
7 years ago
Scott Leggett 609c420501 Initialise previous cursor position.
7 years ago
Ryan Dwyer bcdb676abb Don't set focus to NULL when clicking a surface which has no container
7 years ago
Ryan Dwyer 9253278328 Restore focus when unmapping layer shell surfaces
7 years ago
Ryan Dwyer 57e78414fa Fix seat_get_active_child
7 years ago
Brian Ashworth 7c810dc344 Make command block implementation generic
7 years ago
frsfnrrg 78b7b46895 Style fix, redundant entry removal, fix extra keysym delete
7 years ago
frsfnrrg 480f0c593c Rename update_shortcut_model to update_shortcut_state
7 years ago
frsfnrrg 83d559dd03 Rename check_shortcut_model to get_active_binding
7 years ago
frsfnrrg c53e4e6cde Style fixed for keyboard.c
7 years ago
frsfnrrg f2fe93d171 Remove almost-always redundant loop in key handling
7 years ago
frsfnrrg a056419ad7 Rewrite shortcut handling code to avoid hardcoded values
7 years ago
Drew DeVault e605dc43bb Fix mouse warping interaction with layout coords
7 years ago
Ryan Dwyer e4e912ea91 Store swayc coordinates as layout-local
7 years ago
Ryan Dwyer 1f2e399ade Implement floating
7 years ago
Ryan Dwyer 7c7d24600b Fix ancestor typos
7 years ago
Drew DeVault b2c0ba5b18
Merge pull request #2050 from smlx/focus-fix
7 years ago
frsfnrrg a78a5684ea Implement bindsym/bindcode --locked
7 years ago
Scott Leggett 4d8120ccf3 Improve comment.
7 years ago
Scott Leggett b57f88e7db Avoid assert on container type.
7 years ago
Scott Leggett 1b8de39287 Move previous cursor_position inline.
7 years ago
Scott Leggett d1ebbebea0 Remove unused function.
7 years ago
Scott Leggett 0039f7a4fd Simplify logic, remove redundant variables.
7 years ago
Scott Leggett dd86444e59 Rely on view_is_visible rather thank walking the tree ourselves.
7 years ago
Scott Leggett 4cd304e4ba Store previous position in sway_cursor.
7 years ago
Scott Leggett 06098bef98 Focus containers only on entry.
7 years ago
Drew DeVault fea654a6ce Replace oft-failing abort with if statement
7 years ago
Ivan Chebykin 464ec44b00
Check for next_focus before assert
7 years ago
Ivan Chebykin 6e6b0decd9
Fix usage of sway_assert
7 years ago
Ivan Chebykin 820a8c9c2d
Moved visibility check of of loop, added asserts
7 years ago
Ivan Chebykin 740234a4bc
Break after first tabbed/stacked layout
7 years ago
Ivan Chebykin 53516fa03f
Fix mouse focusing for horizontal/vertical views in tabbed containers
7 years ago
Ivan Chebykin f85d3e15ba
Fixed styling issues
7 years ago
Ivan Chebykin e19fe56e2f
Focus inactive container instead of checking cursor position
7 years ago
Ivan Chebykin 3b67253312
Skip all nested containers
7 years ago
Ivan Chebykin c62efbb5ce
Implement correct focusing for tabbed containers
7 years ago
Ivan Chebykin c1be4b0153
Fix focusing from other containers
7 years ago
Ivan Chebykin 87af08966a
Don't focus tabbed and stacked containers on mouseover
7 years ago
Drew DeVault 8bbf78fdd4 Fix focus follows mouse with no focus
7 years ago
Ryan Dwyer efc07fb3d4 Don't track damage for views on inactive tabs
7 years ago
Ryan Dwyer c08f9bf257 Implement tabbed layout
7 years ago
Brian Ashworth 82cd55a670 Fix border commands from changing focus
7 years ago
Drew DeVault a3d3c819cf Fix focus_follows_mouse over swaybar
7 years ago
Mattias Eriksson 8fbafbfab5 Idle handling for dpms/lockscreen et al
7 years ago
emersion 50298dc901
Send pointer discrete axis values and source
7 years ago
Ryan Dwyer 83e314bf51 Highlight all child borders when using focus parent
7 years ago
emersion 70b80b4698
Damage container on focus
7 years ago
Drew DeVault 029c9b1796
Merge pull request #1907 from emersion/backend-input-mapping
7 years ago
Drew DeVault d233e75eec Hide cursor on touch down
7 years ago
emersion 424006089e
Default to backend-wise input device mapping, if any
7 years ago
Drew DeVault 52aa245b24 Implement basic touch support
7 years ago
emersion 976e6b99b6
Merge branch 'master' into refactor-arrange-windows
7 years ago
Ryan Dwyer 167c2e1aa9 Refactor arrange_windows()
7 years ago
emersion 860d2384b4
Update for swaywm/wlroots#923
7 years ago
emersion ff61df17ff
Add map_from_region command
7 years ago
emersion 3ed3bdf03f
Fix segfault when switching back to workspace with osu!
7 years ago
emersion 4cf77e1de4
Default to current time when triggering cursor events
7 years ago
emersion 33ed279494
Update cursor when workspace focus changes
7 years ago
Drew DeVault 777800e37a Fix qutebrowser crash on context menu dismissal
7 years ago
Drew DeVault 21eb63cc9e
Merge branch 'master' into fullscreen
7 years ago
Ryan Dwyer 5b30391383 Make key repeat configurable
7 years ago
Ryan Dwyer 8d06b222f0 Fullscreen rendering and input fixes.
7 years ago
Ryan Dwyer 35ccdd67a8 More fullscreen fixes.
7 years ago
Ryan Dwyer c685ef081f Create sway_workspace struct.
7 years ago
Ryan Dwyer 52420cc24d Implement fullscreen.
7 years ago
db f555edf353 remove empty workspace when focusing its output
7 years ago
Dominique Martinet 1fd21650d7 seat_set_focus_wrap: fix use-after-free when destroying last focused container
7 years ago
Danny Bautista 1edb2bd892 Implement cursor event simulation with sway commands.
7 years ago
Drew DeVault 07b6be6214
Merge pull request #1769 from acrisci/focus-inactive-fixes
7 years ago
Drew DeVault 0e3ddf255e Add input "identifier" map_to_output "identifier"
7 years ago