908 Commits (a535ed310f756a57129683c9d81c6a65e8338977)

Author SHA1 Message Date
Benjamin Cheng bd3720585e Implement input type configs (#3784)
6 years ago
Benjamin Cheng 6737b90cb9 Add heuristics to differentiate touchpads
6 years ago
Brian Ashworth 6961bf2e4c Spawn swaynag as a wayland client
6 years ago
Brian Ashworth 69a1a0ff99 Fix scratchpad fullscreen behavior and crash
6 years ago
Brian Ashworth 195226120f Honor output for xdg_toplevel_set_fullscreen
6 years ago
Brian Ashworth 75e7bd24cc swaybg: one instance for all outputs
6 years ago
Brian Ashworth 679c058fac scratchpad: set initial size
6 years ago
Brian Ashworth dd28e6a6d6 Fix xwayland configure request scratchpad crash
6 years ago
Brian Ashworth d9de5b8758 Implement inhibit_idle command
6 years ago
Geoff Greer 6e3046878d Add support for manually setting subpixel hinting on outputs.
6 years ago
mliszcz 200833caae Allow for workspace renaming during exec handling
6 years ago
Brian Ashworth 7d2076cbff criteria: fix __focused__ when no focus or unset
6 years ago
Ryan Walklin bdb402404c Support WLR_INPUT_DEVICE_SWITCH in sway
6 years ago
Ryan Dwyer e9a476244d Remove debug tree
6 years ago
Ryan Dwyer 7b9ae42331 Introduce default seatop
6 years ago
Ryan Dwyer fb3475e291 Replace seatup allows_events with button callback
6 years ago
Brian Ashworth 3106ef23a7 Fix output config retrieval for new outputs
6 years ago
Brian Ashworth 52a61671e9 criteria: change workspace to support regex
6 years ago
emersion 076257a978 Stop using wlr_output->{lx,ly}
6 years ago
Ryan Dwyer d16845d5f0 Don't send button events to surfaces when dragging or resizing
6 years ago
Brian Ashworth 017a7c4da1 sway_view_child: add listener for view unmap
6 years ago
Brian Ashworth 430359519c floating_maximum_size: change default behavior
6 years ago
emersion 88b283c557 seat: don't send button release when not pressed
6 years ago
db 2510e3df38 add --i3 flag to hide_edge_borders
6 years ago
Connor E d4b1e71b91 Make load_include_configs void. Fix some cases where WD would not be restored.
6 years ago
emersion 656541bcc4
Update for swaywm/wlroots#1517
6 years ago
Drew DeVault 487c83f0de Add workspace {prev,next}_on_output --create
6 years ago
Drew DeVault cd10e755c1 Remove refs to unimplemented debuglog command
6 years ago
emersion 7baaa3a0f8 Disconnect swaybg instead of killing it
6 years ago
emersion 8ab64d3fcc Remove unused header include/sway/tree/output.h
6 years ago
Brian Ashworth 272ca06171 Fix reload freeze when not modsetting current mode
6 years ago
emersion 97c89b24b8
Rebase cursor when a layer surface maps
6 years ago
Brian Ashworth 7299b9a6ca seat_cmd_cursor: do not create non-existing seat
6 years ago
Brian Ashworth ebe5399ed6 pointer_constraint: change to a seat subcommand
6 years ago
Drew DeVault a6d41254c9 Add pointer_constraint command
6 years ago
absrd ee4b8a3938 Add relative pointer
6 years ago
Las cedde21c96 Implement pointer-constraints-unstable-v1
6 years ago
Brian Ashworth f0fd6119cf Cleanup config reading failure error logs
6 years ago
Ryan Dwyer 6b8bf10941 Introduce container_is_scratchpad_hidden
6 years ago
Ryan Dwyer 0a9ff774ad Center surface inside container when it's too small
6 years ago
Drew DeVault 783fadab28
Merge pull request #3423 from RyanDwyer/fullscreen-global
6 years ago
emersion a452f8f822
Update for swaywm/wlroots#1503
6 years ago
Ryan Dwyer 20aa8ee67d Implement fullscreen global
6 years ago
emersion 75406bb93b Update for swaywm/wlroots#1402
6 years ago
Jan Beich ba96983bf0 Make json-c include respect pkg-config --cflags
6 years ago
Ryan Dwyer 2301349ad5 Use noop output when there's no outputs connected
6 years ago
M Stoeckl d7ff776552 Move sway-specific functions in common/util.c into sway/
6 years ago
emersion a737d7ecc4
Better handle outputs without CRTC
6 years ago
emersion dc1eac0cf1 output: remove output_add_listeners
6 years ago
Brian Ashworth 02bbefda20 bar_cmd_tray_bind: Use mouse button helpers
6 years ago
Ryan Dwyer 2024f1da72 Resize only current and immediate siblings rather than all siblings
6 years ago
Brian Ashworth 2573606b60 Disarm key repeat on reload
6 years ago
M Stoeckl 2a684cad5f Remove now-unused "input" argument of cmd_results_new
6 years ago
M Stoeckl 6d392150a7 Remove 'input' field of IPC command return json
6 years ago
Drew DeVault 4879d40695
Merge pull request #3144 from emersion/cmd-xwayland
6 years ago
Drew DeVault 81bb675274
Merge pull request #3344 from RedSoxFan/bar-mouse-bindings-improved
6 years ago
Drew DeVault 9f9ef76175
Merge pull request #3343 from RedSoxFan/seat-cursor-buttons-improved
6 years ago
Drew DeVault 23ab56bbf7
Merge pull request #3402 from RyanDwyer/refactor-seatops
6 years ago
Drew DeVault 08569aab36
Merge pull request #3388 from RedSoxFan/reset-inputs-on-reload
6 years ago
Brian Ashworth ca0a75d540 swaybar: add status_edge_padding command
6 years ago
Brian Ashworth c0f92cb2fb swaybar: add status_padding command
6 years ago
Brian Ashworth 3d6440ec26 bar_cmd_bind: utilize mouse button helpers
6 years ago
Brian Ashworth aa1c838f97 seat_cmd_cursor: utilize mouse button helpers
6 years ago
Ryan Dwyer ed5aafd90b Refactor seat operations to use an interface
6 years ago
Brian Ashworth eefa6b1ad3 bind{code,sym}: utilize mouse button helpers
6 years ago
Brian Ashworth 6f6a9af60e Add helpers for improved mouse button parsing
6 years ago
Brian Ashworth 4696f49ecc reload: reset input configs
6 years ago
Rouven Czerwinski fde900861a cursor: move unhide and timeout retrieval into separate functions
6 years ago
Brian Ashworth 5bf4daf263 Implement tiling_drag_threshold
6 years ago
Ian Fan 6b03c68775 swaybar: implement tray config
6 years ago
Brian Ashworth 4d88c95790 hide_cursor: change to a seat subcommand
6 years ago
Brian Ashworth 09bb71f650 Verify seat fallback settings on reload
6 years ago
Brian Ashworth 3e8f548d1d Revamp seat configs
6 years ago
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 88d96bc41f Combine output_by_name and output_by_identifier
6 years ago
Brian Ashworth 1897edabba Rework default output configs
6 years ago
Brian Ashworth 1bd8463481 Implement bar gaps
6 years ago
Brian Ashworth e5f90f25d7 Introduce a way to show config warnings in swaynag
6 years ago
emersion b98563d2d7
Fix segfault when destroying unmapped child view
6 years ago
Ryan Dwyer f737854e30
Merge pull request #3199 from emersion/handle-subsurface-destroy
6 years ago
Brian Ashworth 5c6f3d7266 Change execute_command to return a list of results
6 years ago
emersion fc79b7c2d2
Handle destroyed subsurfaces
6 years ago
Brian Ashworth e6562c8cd2 Implement title alignment
6 years ago
Florent de Lamotte 7555c7efdc Adding commands for configuring titlebar borders and padding
6 years ago
emersion bf7af9c690
Merge pull request #3083 from c-edw/feature/StripWorkspaceName
6 years ago
emersion 311c7db7e3
Add xwayland command
6 years ago
Spencer Michaels 70bc4c3ab6 Add scroll factor config option.
6 years ago
emersion cad851805b
Use #if instead of #ifdef
6 years ago
Connor E 4bd46fb079 Implement strip_workspace_name.
6 years ago
Ryan Dwyer be9348d25c Move view {x,y,width,height} into container struct
6 years ago
Brian Ashworth 12876932a9 Allow multiple outputs for workspace output
6 years ago
Ryan Dwyer aad2f444f0
Merge pull request #3087 from RedSoxFan/side-gaps
6 years ago
Brian Ashworth 9e8aa39530 Implement per side and per direction outer gaps
6 years ago
Brian Ashworth 6a42643784 gaps: remove duplicate inner gaps
6 years ago
Connor E 4a21981855 Add focus_follows_mouse always. (#3081)
6 years ago
Drew DeVault c18cd9dd03
Merge pull request #3021 from Snaipe/singlekey-binding-trigger
6 years ago
Ryan Dwyer 9fc736f4e1 Move view marks properties to container struct
6 years ago
Ryan Dwyer 528c7495bb Move view border properties to container struct
6 years ago
Ryan Dwyer 7be309710d Remove enum movement_direction
6 years ago
Franklin "Snaipe" Mathieu f8e83ee20a binding: match single-key bindings if no multi-key binding matched
6 years ago
Robinhuett 0a4cf4748d Use output identifier for workspace config
6 years ago
Ryan Dwyer 60a1d79de7 Rebase the cursor after applying transactions
6 years ago
Drew DeVault ea2497d35c
Merge pull request #2950 from emersion/presentation-time
6 years ago
Ryan Dwyer bdae625cb3 Rebase the cursor after mapping a view
6 years ago
Drew DeVault bdb176863c
Merge pull request #2933 from Snaipe/xwayland-window-properties
6 years ago
emersion a654ac1bd6
Implement the presentation-time protocol
6 years ago
Franklin "Snaipe" Mathieu 8fc9328334 xwayland: populate window_properties in json for views
6 years ago
Ian Fan 9227cb7d67 commands: replace EXPECTED_LESS_THAN with EXPECTED_AT_MOST
6 years ago
Ian Fan 5364255f26 commands: remove EXPECTED_MORE_THAN
6 years ago
Ryan Dwyer 6deb726873 Fix crash when quitting a QT app on the wayland backend using menu
6 years ago
Christian 989bddc765 Parse missing i3 window types
6 years ago
Ryan Dwyer c5a6c37275 Make workspace back_and_forth seat-specific
6 years ago
Ryan Dwyer b9b1b0e566 Remove raise_floating directive
6 years ago
Ryan Dwyer c006717910 Minor refactor of input manager
6 years ago
Ryan Dwyer 9ea71f292b Introduce cursor_rebase
6 years ago
Ryan Dwyer 4d743b64d0 Fix logic used for mouse_warping output
6 years ago
Drew DeVault 96e3686ae8
Merge pull request #2875 from RedSoxFan/input-device-bindings
6 years ago
Ryan Dwyer a2fdac2c4b Consider cursor warp when switching workspaces
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 #2820 from Emantor/fix-mouse-warping-container
6 years ago
Rouven Czerwinski 0969bf758b cursor: functions to warp cursor to container and workspace
6 years ago
Rouven Czerwinski 892446a0b6 view: move arrange_workspace into view_map
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
Drew DeVault abde9d6627
Merge pull request #2808 from RedSoxFan/bar-subcommands
6 years ago
Tarmack 36d9037f2c fix_edge_gaps: Allow negative values for outer gaps.
6 years ago
Brian Ashworth 00745d6280 Fix bar subcommand handler structs and selection
6 years ago
Ian Fan cd6917d4a8
Merge branch 'master' into bar-bindsym
6 years ago
Rouven Czerwinski 41991542ca Add mouse_warping container
6 years ago
Ryan Dwyer 61699a1146 resize: Determine if anything changed using before/after check
6 years ago
Brian Ashworth 1c969e86f5 Implement bar bindsym
6 years ago
Drew DeVault 4bebee620f
Merge pull request #2772 from RyanDwyer/improve-popup-damage
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 82423991a8 Reload config using idle event
6 years ago
Drew DeVault 92e1fc00fd Shim client.background and client.placeholder
6 years ago
Ryan Dwyer 1059e173f4 Only damage popups when popups have damage
6 years ago
Jonathan Buch 7727d54faf
Fix focusing topmost floating windows
6 years ago
Jonathan Buch 298ccb539c
Add configuration for raising containers on focus
6 years ago
Drew DeVault 06c214a800
Merge pull request #2703 from RyanDwyer/csd-border
6 years ago
Brian Ashworth bb25194844 Handle border options for gaps
6 years ago
Brian Ashworth 742d1764a6 Fix smart gaps
6 years ago
Drew DeVault f1dbdce0b2
Merge pull request #2726 from RyanDwyer/overhaul-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
Arkadiusz Hiler d8200012fb Remove declarations that do no have definitions
6 years ago
PP ae2b70f59e add tap-and-drag setting to sway-input
6 years ago
Ryan Dwyer 42f1fdf015 Return an error when resizing is a no op
6 years ago
Ryan Dwyer 415a48ac63 Make gaps implementation consistent with i3-gaps
6 years ago
Ryan Dwyer 138d10d5d6 Rename workspace_outputs to workspace_configs and fix memory leak
6 years ago
Ryan Dwyer 21ff87d72b Improve CSD logic
6 years ago
Ryan Dwyer 6d0442c0c2 Rename view_set_csd_from_client to view_update_csd_from_client
6 years ago
Ryan Dwyer 7b138e5ef0 Add CSD to border modes
6 years ago
Brian Ashworth baeb28ea62 Implement support for input wildcard
6 years ago
Ryan Dwyer cb66bbea42 Allow running commands on containers without focusing them
6 years ago
emersion 82f1393cbb swaybar: handle hotplugging
6 years ago
Drew DeVault 6ec3626228
Merge pull request #2676 from ianyfan/ipc
6 years ago
Ian Fan 81f3fda6fa ipc: add pid information for views in layout tree
6 years ago
Ryan Dwyer db28459634 Introduce create_output command (for developer use)
6 years ago
Ryan Dwyer f6e218a643 Rename seat_get_active_child to seat_get_active_tiling_child
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 8bb40c24c7 Implement tiling drag
6 years ago
Ryan Dwyer ec9c4de564 Introduce tiling_drag directive
6 years ago
Ryan Dwyer d4e80cf301 Rename OP_MOVE to OP_MOVE_FLOATING
6 years ago
Ryan Dwyer 9215ca0f01 Align titles to baseline
6 years ago
Ryan Dwyer 908095ef9a Introduce seat_set_focus_container and seat_set_focus_workspace
6 years ago
Ryan Dwyer 06d9693829 Remove offset argument to container_add_sibling
6 years ago
Ryan Dwyer acc2628c79 Don't use wlr_output properties
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
Ryan Dwyer 29f5cc7508 Implement window_role criteria token
6 years ago
Pascal Pascher 93673095f0 move criteria "instance", "class" and "window_role" inside HAVE_XWAYLAND ifdefs"
6 years ago
Pascal Pascher 587e320cd8 Fixed window_type with disabled xwayland support.
6 years ago
Ryan Dwyer 6fb03817c9 Rename fowa enum and use switch in view_request_activate
6 years ago
Ryan Dwyer f057a0195e Implement focus_on_window_activation
6 years ago
Ryan Dwyer f4ec308376 Implement window_type criteria token
6 years ago
Ryan Dwyer f5b9815128 Prepare arrange code for type safe arguments
6 years ago
Drew DeVault 10c2c09cf6
Merge pull request #2513 from RyanDwyer/rename-root-outputs
6 years ago
Ryan Dwyer 5dbbab7bdc Remove layout.c
6 years ago
Ryan Dwyer 8bed4be1f3 Make separate gaps functions per container type
6 years ago
Ryan Dwyer 1e024b91fa Add comment for sway_root.all_outputs
6 years ago
Ryan Dwyer 2e7401772e Rename sway_root.outputs to sway_root.all_outputs
6 years ago
Ryan Dwyer f4bc25bcc6 Relocate container_move, container_move_to and container_get_in_direction
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 e1955c5c08 Fix crash when adding output
6 years ago
Ryan Dwyer 0f6d212629 Send output enter/leave events correctly
6 years ago
Drew DeVault 9f913614ca
Merge pull request #2478 from RyanDwyer/standardise-debug
6 years ago
Ryan Dwyer 2b5a404ac9 Replace hacky L_FLOATING container with a list
6 years ago
Ryan Dwyer f9563d88f3 Use enum for damage debug options
6 years ago
Ryan Dwyer 8d1dd03823 Standardise debug variables
6 years ago
Ryan Dwyer 7f22fab389
Merge branch 'master' into commands
6 years ago
Drew DeVault d0a24465d7
Merge pull request #2466 from RyanDwyer/geometry
6 years ago
Ian Fan 23601a8771 commands: complete assign command
6 years ago
Ian Fan c1af79532f commands: add nop
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 16c663ed49 Rename container_sort_workspaces and container_wrap_children
6 years ago
Ryan Dwyer b0a5f3a25f Store geometry in the view and handle any floating view resizing
6 years ago
Ryan Dwyer 982a2d0c99 Fix geometry
6 years ago
emersion b3ee9af0c8 Add view_get_geometry
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
Drew DeVault db4b4935b3
Merge pull request #2472 from RyanDwyer/refactor-seat-get-focus
6 years ago
Ryan Dwyer 1801b725e2 Add using_csd variable to transaction state
6 years ago
Ryan Dwyer 3a888163a0 Refactor seat_get_focus functions
6 years ago
Ryan Dwyer c3ef36d6b5 Simplify transactions
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
Brian Ashworth 43d1ffc9dd Allow a fallback color to be specified for swaybg
6 years ago
Ryan Dwyer 5653fc754b Deny moving a sticky container to workspace if it's the same output
6 years ago
Ryan Dwyer a0649190de Fix edge cases when moving floating container to new workspace
6 years ago
Ryan Dwyer 36281609ea Implement move to workspace on a floating container
6 years ago
Drew DeVault d8b65193c4
Merge pull request #2268 from emersion/server-decoration-borders
6 years ago
emersion 9d578e0a0f Handle views created after decoration mode is sent for xdg-shell
6 years ago
emersion 700941dde8 Listen to server-decoration mode changes
6 years ago
Ian Fan 85ae121caa commands: complete workspace implementation
6 years ago
Ian Fan 356063b6c0 commands: fix layout implementation (also better name for previous split layout)
6 years ago
Ian Fan 69e1a421fc commands: complete move implementation
6 years ago
Ryan Dwyer 30e7e0f7c7 Move workspace pid code to root.c
6 years ago
Ryan Dwyer 04489ff420 Separate root-related code
6 years ago
Brian Ashworth 36fd84cc42 Remove swaynag_clone and use memcpy
6 years ago
Brian Ashworth a7f7d4a488 Write to swaynag pipe fd directly on config errors
6 years ago
Brian Ashworth f9a6407111 Show swaynag on config errors
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
Ryan Dwyer 8392eae40f Revert "Revert "Fix popups""
6 years ago
Drew DeVault 9aa258d33a Revert "Fix popups"
6 years ago
emersion 47bf4ed0cb
Merge branch 'master' into fix-resize-wiggle
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 6865b8aae9 ipc: add binding event
6 years ago
Ian Fan 317217f2c8 ipc: add window::mark event
6 years ago
Ian Fan e8b179e313 ipc: add shutdown event
6 years ago
Ryan Dwyer d10ccc1eb1 Correctly track saved surfaces during multiple transactions
6 years ago
Ryan Dwyer 7a59508da4 Close popups when changing focus
6 years ago
Ryan Dwyer de86d65627 Fix popups
6 years ago
Drew DeVault cbd0c3ec40
Merge pull request #2367 from emersion/iterator-redesign
6 years ago
Drew DeVault 6c30b3fcc8
Merge pull request #2381 from frsfnrrg/key-repeat
6 years ago
Brian Ashworth b8efdeae29 Fix title textures on scale change
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