aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* Minor refactor of input managerLibravatar Ryan Dwyer2018-10-20
| | | | | | | | | | | | | | | | | | | | | The input manager is a singleton object. Passing the sway_input_manager argument to each of its functions is unnecessary, while removing the argument makes it obvious to the caller that it's a singleton. This patch removes the argument and makes the input manager use server.input instead. On a similar note: * sway_input_manager.server is removed in favour of using the server global. * seat.input is removed because it can get it from server.input. Due to a circular dependency, creating seat0 is now done directly in server_init rather than in input_manager_create. This is because creating seats must be done after server.input is set. Lastly, it now stores the default seat name using a constant and removes a second reference to seat0 (in input_manager_get_default_seat).
* Merge pull request #2872 from RyanDwyer/cursor-rebaseLibravatar Drew DeVault2018-10-20
|\ | | | | Introduce cursor_rebase
| * Introduce cursor_rebaseLibravatar Ryan Dwyer2018-10-19
| | | | | | | | | | This function "rebases" the cursor on top of whatever is underneath it, without triggering any focus changes.
* | Merge pull request #2885 from RyanDwyer/fix-tiling-drag-crashLibravatar Drew DeVault2018-10-20
|\ \ | | | | | | Fix crash when ending tiling drag
| * | Fix crash when ending tiling dragLibravatar Ryan Dwyer2018-10-20
| | | | | | | | | | | | | | | | | | | | | If the container being dragged has a parent that needs to be reaped, it must be reaped after we've reinserted the dragging container into the tree. During reaping, handle_seat_node_destroy tries to refocus the dragging container which isn't possible while it's detached.
* | | Merge pull request #2884 from c-edw/feature/2867_FixScalingParameterLibravatar Drew DeVault2018-10-20
|\ \ \ | |/ / |/| | Prevent overriding background mode after it's been set.
| * | Change initial background mode before arg parse.Libravatar Connor E2018-10-19
|/ /
* | Merge pull request #2883 from ponkyh/missing-stdlibLibravatar emersion2018-10-19
|\ \ | |/ |/| missing headers for swaybar/input.c
| * missing headers for swaybar/input.cLibravatar ossi.ahosalmi2018-10-19
|/
* Merge pull request #2882 from RyanDwyer/fix-mouse-warp-logicLibravatar Drew DeVault2018-10-19
|\ | | | | Fix logic used for mouse_warping output
| * Fix logic used for mouse_warping outputLibravatar Ryan Dwyer2018-10-19
|/ | | | | Turns out we don't need to store the previous focus, and it should be based on which output the cursor was in.
* Merge pull request #2875 from RedSoxFan/input-device-bindingsLibravatar Drew DeVault2018-10-19
|\ | | | | cmd_bind{sym,code}: Implement per-device bindings
| * cmd_bind{sym,code}: Implement per-device bindingsLibravatar Brian Ashworth2018-10-18
| | | | | | | | | | bindsym --input-device=<identifier> ... bindcode --input-device=<identifier> ...
* | Merge pull request #2877 from RyanDwyer/warp-on-workspace-switchLibravatar Drew DeVault2018-10-19
|\ \ | |/ |/| Consider cursor warp when switching workspaces
| * Consider cursor warp when switching workspacesLibravatar Ryan Dwyer2018-10-19
|/ | | | | | | | | Fixes a regression introduced in 24a90e5d86441fc345356eb3767e5a6880dcedbd. consider_warp_to_focus has been renamed to seat_consider_warp_to_focus, moved to seat.c and made public. It is now called when switching workspaces via `workspace <ws>`.
* Merge pull request #2874 from ianyfan/swaybarLibravatar Brian Ashworth2018-10-18
|\ | | | | swaybar: separate input code to new file
| * swaybar: separate input code to new fileLibravatar Ian Fan2018-10-18
|/
* Merge pull request #2871 from RyanDwyer/untangle-cursor-warpLibravatar Drew DeVault2018-10-18
|\ | | | | Remove cursor warping from seat_set_focus
| * Remove cursor warping from seat_set_focusLibravatar Ryan Dwyer2018-10-18
|/ | | | | | | | | | | | Because cursor warping was the default behaviour in seat_set_focus, there may be cases where we may have been warping the cursor unintentionally. This patch removes cursor warping from seat_set_focus and only does it in the focus command. This is managed by a static function in focus.c. To know whether to warp or not, we need to know which node had focus previously. To keep track of this easily, seat->prev_focus has been introduced and is set to the previous in seat_set_focus.
* Merge pull request #2868 from emersion/xcursor-envLibravatar Drew DeVault2018-10-17
|\ | | | | Export XCURSOR_SIZE and XCURSOR_THEME
| * Export XCURSOR_SIZE and XCURSOR_THEMELibravatar emersion2018-10-17
|/ | | | | | | | These can be used by toolkits (currently Qt, libxcursor, glfw) to choose a default cursor theme and size. This backports this rootston commit: https://github.com/swaywm/wlroots/pull/1294/commits/3a181ab430997aaf03a75cbe3b79b0fc56ec96c3
* Merge pull request #2858 from RyanDwyer/fix-move-to-floating-wsLibravatar Drew DeVault2018-10-17
|\ | | | | Fix moving tiled containers to workspaces which only have floating views
| * Fix moving tiled containers to workspaces which only have floating viewsLibravatar Ryan Dwyer2018-10-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make a workspace which only contains floating views * Switch to another workspace and create a tiled view * Move the tiled view to the workspace with `move container to workspace N` The container would be added as a sibling to the floating view, which makes the container floating while having the geometry of a tiled container. This changes it so it only looks for tiled containers in the workspace with a fallback to the workspace itself.
* | Merge pull request #2864 from sghctoma/freebsd-fixesLibravatar Drew DeVault2018-10-17
|\ \ | | | | | | FreeBSD fixes
| * | Set sysconfdir to /etc only if prefix is /usrLibravatar sghctoma2018-10-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR #2855 basically hardcodes the config file path to /etc, which is a problem on e.g. FreeBSD, where the expected path for config files of non-base software is '/usr/local/etc'. Meson sets sysconfdir to '/etc' explicitly only when prefix is '/usr', so it is still possible to use '/usr/local' as prefix, and install the config files under '/usr/local/etc'. This commit allows to do that by setting sysconfdir based on the value of prefix.
| * | Increase _POSIX_C_SOURCE to 200112LLibravatar sghctoma2018-10-17
| |/ | | | | | | | | CLOCK_MONOTONIC appeared in IEEE Std. 1003.1-200x, it was not part of POSIX.1b (the 1993 version), and FreeBSD treats it accordingly.
* | Merge pull request #2861 from RyanDwyer/fix-empty-workspace-crashesLibravatar Drew DeVault2018-10-17
|\ \ | | | | | | Fix crashes when running certain commands on an empty workspace
| * | Fix crashes when running certain commands on an empty workspaceLibravatar Ryan Dwyer2018-10-17
| |/ | | | | | | | | This fixes crashes when running the border, mark, unmark and title_format commands on an empty workspace.
* | Merge pull request #2820 from Emantor/fix-mouse-warping-containerLibravatar Drew DeVault2018-10-17
|\ \ | | | | | | Fix mouse warping container
| * | view: rewarp cursor during view_unmapLibravatar Rouven Czerwinski2018-10-16
| | | | | | | | | | | | | | | | | | If the cursor is warped during the destruction of the workspace, we end up in the wrong position. Warp the cursor after arrange_workspace() so we end up in the correct position.
| * | seat: use new warping functions for cursor warping during focus warpLibravatar Rouven Czerwinski2018-10-16
| | |
| * | cursor: functions to warp cursor to container and workspaceLibravatar Rouven Czerwinski2018-10-16
| | | | | | | | | | | | | | | | | | The new functions allow a cursor to be warped without changing the focus. This is a preparation commit to handle cursor warping not only in seat_set_focus_warp.
| * | view: move arrange_workspace into view_mapLibravatar Rouven Czerwinski2018-10-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For mouse_warping cursor to correctly work on newly spawned containers, the workspace needs to be arranged before the cursor is warped. The shell functions each implement their own fullscreen and arrange checks, move them into the view_map function and pass their states via boolean arguments. Fixes #2819
* | | Merge pull request #2862 from SpeedJack/fix-stringop-overflowLibravatar Drew DeVault2018-10-17
|\ \ \ | |_|/ |/| | Fix overflow in strcpy
| * | Fix stringop-overflow warningsLibravatar Niccolò Scatena2018-10-17
|/ /
* | Merge pull request #2843 from c-edw/feature/2842_TruncateMessageLibravatar Brian Ashworth2018-10-16
|\ \ | | | | | | swaynag: Truncate message to 2048 chars.
| * \ Merge branch 'master' into feature/2842_TruncateMessageLibravatar Brian Ashworth2018-10-16
| |\ \ | |/ / |/| |
* | | Merge pull request #2855 from SpeedJack/sysconfdir-fhs-compliantLibravatar Drew DeVault2018-10-16
|\ \ \ | | | | | | | | Make SYSCONFDIR FHS compliant when "prefix" is set
| * | | Set SYSCONFDIR to /etc even when "prefix" is setLibravatar Niccolò Scatena2018-10-16
| | | | | | | | | | | | | | | | | | | | SYSCONFDIR should be "/etc" even when prefix="/usr" to be FHS compliant. This is the default in meson from v0.44.
| * | | Revert "Fix SYSCONFDIR to include "prefix""Libravatar Niccolò Scatena2018-10-16
|/ / / | | | | | | | | | | | | | | | This reverts commit 6942f5b6845b2cc572ec378365771a34caf50ba1. SYSCONFDIR should be "/etc" even when prefix="/usr" to be FHS compliant. This is the default in meson from v0.44.
* | | Merge pull request #2852 from RyanDwyer/back-and-forth-crashLibravatar Drew DeVault2018-10-16
|\ \ \ | | | | | | | | Fix crash when using workspace back_and_forth with no previous
| * | | Fix crash when using workspace back_and_forth with no previousLibravatar Ryan Dwyer2018-10-16
|/ / /
| * / Truncate message, append buffer overflow message if too long.Libravatar Connor E2018-10-16
|/ / | | | | | | | | | | | | | | Increase buffer size, remove macros. Make variables lowercase. Some more feedback.
* | Merge pull request #2836 from RyanDwyer/set-set-raw-focusLibravatar Ian Fan2018-10-16
|\ \ | | | | | | Introduce seat_set_raw_focus and remove notify argument from seat_set_focus_warp
| * \ Merge branch 'master' into set-set-raw-focusLibravatar Ian Fan2018-10-16
| |\ \ | |/ / |/| |
* | | Merge pull request #2845 from colemickens/posix_clockLibravatar Drew DeVault2018-10-15
|\ \ \ | | | | | | | | common/loop.c: add _POSIX_C_SOURCE for clock_gettime and CLOCK_MONOTONIC
| * | | common/loop.c: add _POSIX_C_SOURCE for clock_gettime and CLOCK_MONOTONICLibravatar Cole Mickens2018-10-15
|/ / /
* | | Merge pull request #2839 from RyanDwyer/swaylock-versionLibravatar Drew DeVault2018-10-15
|\ \ \ | | | | | | | | Fix swaylock version string
| * | | Fix swaylock version stringLibravatar Ryan Dwyer2018-10-16
|/ / / | | | | | | | | | | | | | | | | | | The referenced constants were not defined so it always printed "version unknown". Also it would exit with code 1. It now exits with code 0.
* | | Merge pull request #2838 from RyanDwyer/compositor-unavailable-crashLibravatar Drew DeVault2018-10-15
|\ \ \ | | | | | | | | Sway clients: Exit gracefully when compositor is unavailable