Commit Graph

338 Commits (fd9ab9ee0659d5b4c2bd148e25b8bc6378f604d6)

Author SHA1 Message Date
Brian Ashworth 3248c823ed Split image_surface handling into own function 6 years ago
Brian Ashworth 5fca74a1f1 Implement hide_cursor <timeout> command 6 years ago
Brian Ashworth a223030b70 Change mouse buttons to x11 map and libevdev names 6 years ago
Brian Ashworth 0ea54833d4 Focus node before tiling drag if on titlebar 6 years ago
Brian Ashworth 8d7ebc258a Allow tiling views to be dragged by the titlebar 6 years ago
emersion 3a310f92ab
Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 6 years ago
Spencer Michaels 70bc4c3ab6 Add scroll factor config option. 6 years ago
emersion cad851805b
Use #if instead of #ifdef 6 years ago
Ryan Dwyer be9348d25c Move view {x,y,width,height} into container struct 6 years ago
emersion 4ce18d2744
Fix segfault in dispatch_cursor_button 6 years ago
Connor E 4a21981855 Add focus_follows_mouse always. () 6 years ago
Ryan Dwyer 528c7495bb Move view border properties to container struct 6 years ago
mwenzkowski 66ae58d62a cursor: fix uninitialized pointer in cursor_rebase 6 years ago
Ryan Dwyer 641fbe576e When scrolling on a tab titlebar, set focus_inactive if not focused 6 years ago
Ryan Dwyer 450a0661d7 Fix dormant cursor when using multiple seats 6 years ago
Ryan Dwyer c006717910 Minor refactor of input manager 6 years ago
Ryan Dwyer 9ea71f292b Introduce cursor_rebase 6 years ago
Brian Ashworth 2e637b7368 cmd_bind{sym,code}: Implement per-device bindings 6 years ago
Ryan Dwyer 24a90e5d86 Remove cursor warping from seat_set_focus 6 years ago
Drew DeVault 765c80e5f7
Merge pull request from Emantor/fix-mouse-warping-container 6 years ago
Rouven Czerwinski 0969bf758b cursor: functions to warp cursor to container and workspace 6 years ago
Ryan Dwyer 26278b694c Introduce seat_set_raw_focus and remove notify argument from seat_set_focus_warp 6 years ago
Ryan Dwyer 416bb7a214 Fix floating click events 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 4feedbf7cf Ignore unrelated cursor buttons while doing seat operations 6 years ago
Jonathan Buch 7727d54faf
Fix focusing topmost floating windows 6 years ago
Drew DeVault 06c214a800
Merge pull request from RyanDwyer/csd-border 6 years ago
Arkadiusz Hiler 1e70f7b19e Turn funcs() into funcs(void) 6 years ago
emersion a53171669a
Merge pull request from ianyfan/hide-cursor 6 years ago
Ryan Dwyer 7b138e5ef0 Add CSD to border modes 6 years ago
Alexander Bakker d129108cdd Add a missing null check for moving tiling containers 6 years ago
Ian Fan a10fef9ae8 cursor: allow cursor_set_image to accept a NULL image to hide cursor 6 years ago
Ryan Dwyer bf5933c501 Implement tab cycling using mouse wheel 6 years ago
emersion 7699c5444c Update for 6 years ago
Ryan Dwyer 679c7eb08c Minor fixes to tiling drag implementation 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 from emersion/fix-dnd 6 years ago
emersion 251a7ebc4b Fix drag-and-drop 6 years ago
Ryan Dwyer 908095ef9a Introduce seat_set_focus_container and seat_set_focus_workspace 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 eccfcde2eb Fix crash when moving mouse over a fullscreen split container 6 years ago
Ryan Dwyer 7586f150c0 Implement type safe arguments and demote sway_container 6 years ago
Ryan Dwyer 5dbbab7bdc Remove layout.c 7 years ago
Ryan Dwyer 2b5a404ac9 Replace hacky L_FLOATING container with a list 7 years ago
Drew DeVault d4a32800d5
Merge pull request from RyanDwyer/implement-mousedown 7 years ago
Ryan Dwyer d22420689d Fix mod+resize 7 years ago
Ryan Dwyer 07a897b3b7 Don't send motion if the cursor hasn't moved 7 years ago
Ryan Dwyer b637b61a7a Rename mousedown to down and make seat operation a named enum 7 years ago
Ryan Dwyer a36625a482 Implement mousedown operation 7 years ago
Ryan Dwyer 4d023c0390 Make mod+resize a floating container resize the container itself 7 years ago
Ryan Dwyer e9d46ccbdd Use col-resize and row-resize cursor images 7 years ago
Ryan Dwyer 1893515d3a Fix right-click/popups and add state checks 7 years ago
Ryan Dwyer 2dceae6224 Allow resizing tiled views via mod key 7 years ago
Ryan Dwyer f4280e506b Refactor dispatch_cursor_button 7 years ago
Ryan Dwyer b4a0363d17 Implement resizing tiled containers via cursor 7 years ago
Ryan Dwyer f5dc3ac09d Don't call send_pointer_notify_button when doing move or resize 7 years ago
Ryan Dwyer 4c5dc6f135 Focus floating views when beginning move/resize operations 7 years ago
Ryan Dwyer c17f0870ef Fix crash when moving cursor over a fullscreen split container 7 years ago
emersion b336564511 Fix pointer events for fullscreen views 7 years ago
minus e72f86784c Fix crash on mouse motion on fullscreen container 7 years ago
Ryan Dwyer 8392eae40f Revert "Revert "Fix popups"" 7 years ago
Drew DeVault 9aa258d33a Revert "Fix popups" 7 years ago
Drew DeVault 9564c73c0d
Merge pull request from RyanDwyer/fix-popups-v2 7 years ago
Ian Fan 03eaf444a4 ipc: prevent emitting a workspace::focus event when moving a container to a different workspace or output 7 years ago
Ryan Dwyer de86d65627 Fix popups 7 years ago
Ryan Dwyer 0b6b6716e2 Fix clicking a floating split container 7 years ago
Ryan Dwyer 08cfba2192 Allow containers to float 7 years ago
Ryan Dwyer 27a20a4884 Allow containers to be fullscreen 7 years ago
Drew DeVault fc718f629a
Merge pull request from ppascher/xwayland-optional 7 years ago
Pascal Pascher f95cb9a7c1 reverted includes of "sway/config.h" and replaced with "config.h" from meson build 7 years ago
Pascal Pascher 79a45d4a40 more style fixes, included "sway/config.h" where needed 7 years ago
Brian Ashworth 3a75bb7f32 Change button var passed to seat_begin_move 7 years ago
Brian Ashworth dca02944ce Implement floating_modifier <mod> [inverse|normal] 7 years ago
Pascal Pascher 2bf893248a style fixes, exclude sway/desctop/xwayland.c when enable_xwayland: false 7 years ago
Pascal Pascher 24ad1c3983 Added meson option "enable_xwayland" (default: true) to enable/disable xwayland support 7 years ago
Ryan Dwyer 2f1b84a0f3 Fix crash when clicking certain surfaces 7 years ago
Ryan Dwyer e7c10f1871 Make mod+resize work in any direction 7 years ago
frsfnrrg 94dd8823a0 Invoke mouse bindings 7 years ago
Ryan Dwyer 0db6f2ef58 Fix some cases where the cursor doesn't update 7 years ago
Ryan Dwyer d21d4b83a3 Set cursor when beginning resize and move operations 7 years ago
Ryan Dwyer 009b426024 Fix damage when shrinking a floating view using cursor 7 years ago
Ryan Dwyer 5ba2ae9c6a Implement request_move and request_resize for xwayland views 7 years ago
Ryan Dwyer 3faceadffe Fix focus bug with floating containers 7 years ago
Ryan Dwyer 011d1ebfa4 Consider view's min/max sizes when resizing 7 years ago
Ryan Dwyer 9df660ee31 Store last button and use it when views request to move or resize 7 years ago
Ryan Dwyer 6767d8a593 Prevent re-uploading the same cursor image multiple times 7 years ago
Ryan Dwyer 0c87bff5d1 Replace static handle_end_operation with seat_end_mouse_operation 7 years ago
Ryan Dwyer ff445cc855 Implement xdg shell request_move and request_resize events 7 years ago
Ryan Dwyer 1b3b75a094 Use wlr_keyboard_get_modifiers 7 years ago
Ryan Dwyer dd337127d8 Use separate function for choosing edge cursor 7 years ago
Ryan Dwyer 350e9ea929 Fix clicking xwayland menus 7 years ago
Ryan Dwyer c299b6b5cd Use max multiplier when resizing while preserving ratio 7 years ago
Ryan Dwyer 2c6616050a Make mod + resize do it from the top left corner 7 years ago
Ryan Dwyer 3aadf944ae Use WLR_MODIFIER_SHIFT 7 years ago
Ryan Dwyer 9fbe13b9be Implement floating_modifier and mouse operations for floating views 7 years ago
Ryan Dwyer 8533c35a9f Fix crash and render issues involving cursor_send_pointer_motion 7 years ago
Ryan Dwyer a120d4c79f Make focus part of transactions 7 years ago
emersion 63b4bf5000
Update for 7 years ago
Brian Ashworth c833ae64bc Fix pointer button events for layer surfaces 7 years ago
Tony Crisci e9ad10c2d6 dont focus-follow-mouse when keyboard grab 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 e4e912ea91 Store swayc coordinates as layout-local 7 years ago
Ryan Dwyer 1f2e399ade Implement floating 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 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 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
Drew DeVault d233e75eec Hide cursor on touch down 7 years ago
Drew DeVault 52aa245b24 Implement basic touch support 7 years ago
emersion 860d2384b4
Update for 7 years ago
emersion ff61df17ff
Add map_from_region command 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
Ryan Dwyer 8d06b222f0 Fullscreen rendering and input fixes. 7 years ago
Ryan Dwyer 35ccdd67a8 More fullscreen fixes. 7 years ago
Danny Bautista 1edb2bd892 Implement cursor event simulation with sway commands. 7 years ago
Drew DeVault 9c5a88a7bd Fix cursor motion issues 7 years ago
emersion 5ebc99253a
Use wlr_surface_point_accepts_input for unmanaged surfaces 7 years ago
Drew DeVault 9114d3b84c Implement tablet tool support 7 years ago
Drew DeVault cca420b2f8 Fix focus_follows_mouse issues 7 years ago
emersion 641807d920
Handle unmanaged surfaces motion 7 years ago
Drew DeVault d2d050d59c Address review feedback 7 years ago
Drew DeVault b7e7794912 Implement input-inhibit in sway, swaylock 7 years ago
Drew DeVault 0bf3b88019 Give layer shells under the shell layer focus 7 years ago
emersion a4a241697a
Merge branch 'wlroots' into view-redesign 7 years ago
emersion 2f64ce86c4
Xwayland unmanaged views aren't views anymore 7 years ago
Tony Crisci e677c5b204 rename seat functions 7 years ago
Drew DeVault 122b96abed
Merge pull request from swaywm/follow-warp 7 years ago
Drew DeVault f2332dc75c Address review feedback 7 years ago
Drew DeVault b9d2983324 Fix interaction between warping and following 7 years ago
Drew DeVault 9b38ef950f Implement focus_follows_mouse 7 years ago
Drew DeVault ae6d459000 Implement mouse warping 7 years ago
emersion 98b67e2399
Fix xwayland configure in set_size 7 years ago
Drew DeVault eb5a8e03ff Check for null container 7 years ago
Drew DeVault e4fd47d3a1
Merge pull request from emersion/unmanaged-no-container 7 years ago
Drew DeVault ccdcaa478f Fix bug with previous commit 7 years ago
emersion a44a71c116
Make it clear that unmanaged views don't have a container 7 years ago
Drew DeVault 8aa195e311 Fix 7 years ago
Drew DeVault 212b503992 Use wlr_surface_point_accepts_input 7 years ago
Drew DeVault f5470f3338 Pass pointer events to surface layers 7 years ago
emersion 9665642765
Merge branch 'wlroots' into client-cursors 7 years ago
emersion eb716c6c43
Fix segfaults when focusing a workspace 7 years ago
emersion 03255fd202
Fix pointer events for hidden workspaces 7 years ago
emersion 6c9d67b105
Handle set_cursor requests from clients 7 years ago
Tony Crisci dc8c9fbeb6 Revert "Merge pull request from swaywm/revert-1647-refactor-tree" 7 years ago
Drew DeVault d0c7f66e95
Revert "Refactor tree" 7 years ago
Tony Crisci 4c394a0e9e address feedback 7 years ago
Tony Crisci b90099b4b7 rename container functions 7 years ago
Tony Crisci 874f009866 move tree includes to their own directory 7 years ago
Drew DeVault 1e604f3e35 Update input events per 7 years ago
Dominique Martinet 5766f426aa config reload: destroy old seat when removed from config 7 years ago
Tony Crisci 83ddd2d9db render override redirect 7 years ago
Dominique Martinet 67985e9031 sway: change all sway_log to wlr_log 7 years ago
Tony Crisci 39e7871a85 dont set cursor image on motion 7 years ago
Tony Crisci 9fa70ce426 Merge branch 'wlroots' into feature/input 7 years ago
Tony Crisci 92fef27eaa basic configuration 7 years ago
Tony Crisci 21626e8153 seat focus on button press 7 years ago
Tony Crisci 5f644d78fc button and axis events 7 years ago
Tony Crisci e69b052a6d working pointer motion 7 years ago
Tony Crisci 9333a7eb53 working xcursor 7 years ago
Tony Crisci d76e745b73 input include directory 7 years ago
Tony Crisci ec7fc42a00 sway cursor 7 years ago