aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-20Merge pull request #2888 from RyanDwyer/remove-raise-floatingDrew DeVault
Remove raise_floating directive
2018-10-20Merge pull request #2887 from RyanDwyer/bar-overlayDrew DeVault
Put swaybar in overlay layer when using mode hide
2018-10-20Merge pull request #2890 from mihaicmn/create-default-seatRyan Dwyer
Fix crash when defaut seat is not created
2018-10-20Fix crash when defaut seat is not createdMihai Coman
Function input_manager_get_default_seat should always return a seat.
2018-10-20Remove raise_floating directiveRyan Dwyer
The directive controlled whether floating views should raise to the top when the cursor is moved over it while using focus_follows_mouse. The default was enabled, which is undesirable. For example, if you have two floating views where one completely covers the other, the smaller one would be inaccessible because moving the mouse over the bigger one would raise it above the smaller one. There is no known use case for having raise_floating enabled, so this patch removes the directive and implements the raise_floating disabled behaviour instead.
2018-10-20Put swaybar in overlay layer when using mode hideRyan Dwyer
This allows the bar to render over fullscreen views.
2018-10-20Merge pull request #2870 from RyanDwyer/refactor-input-manageremersion
Minor refactor of input manager
2018-10-20Merge pull request #2886 from RyanDwyer/fix-headless-unmap-crashemersion
Fix crash when view unmaps while no outputs connected
2018-10-20Merge pull request #2879 from Emantor/fix/swaybar_positionemersion
swaybar: disallow left and right position and print error on default
2018-10-20commands/bar: remove left and right from allowed positionsRouven Czerwinski
"left" and "right" are not allowed positions for swaybar, remove them.
2018-10-20swaybar: disallow left and right position and print error on defaultRouven Czerwinski
The positions "left" and "right" are not allowed by the man page, remove them from the allowed positions. Also print an error to stderr if we default to the bottom position. Fixes #2878
2018-10-20Minor refactor of input managerRyan Dwyer
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).
2018-10-20Fix crash when view unmaps while no outputs connectedRyan Dwyer
When a view unmaps, we call workspace_consider_destroy. This function assumed the workspace would always have an output, but this is not the case when hotplugged down to zero. The function now handles this and allows itself to be destroyed when there is no output. This means that workspace_begin_destroy must remove the workspace from the root->saved_workspaces list to avoid an eventual dangling pointer, so it does that now. Lastly, when an output is plugged in again and it has to create a new initial workspace for it, we must emit the workspace::init IPC event otherwise swaybar shows no workspaces at all. I guess when you start sway, swaybar is started after the workspace has been created which is why this hasn't been needed earlier.
2018-10-20Merge pull request #2872 from RyanDwyer/cursor-rebaseDrew DeVault
Introduce cursor_rebase
2018-10-20Merge pull request #2885 from RyanDwyer/fix-tiling-drag-crashDrew DeVault
Fix crash when ending tiling drag
2018-10-20Merge pull request #2884 from c-edw/feature/2867_FixScalingParameterDrew DeVault
Prevent overriding background mode after it's been set.
2018-10-20Fix crash when ending tiling dragRyan Dwyer
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.
2018-10-19Change initial background mode before arg parse.Connor E
2018-10-19Merge pull request #2883 from ponkyh/missing-stdlibemersion
missing headers for swaybar/input.c
2018-10-19missing headers for swaybar/input.cossi.ahosalmi
2018-10-19Introduce cursor_rebaseRyan Dwyer
This function "rebases" the cursor on top of whatever is underneath it, without triggering any focus changes.
2018-10-19Merge pull request #2882 from RyanDwyer/fix-mouse-warp-logicDrew DeVault
Fix logic used for mouse_warping output
2018-10-19Fix logic used for mouse_warping outputRyan Dwyer
Turns out we don't need to store the previous focus, and it should be based on which output the cursor was in.
2018-10-19Merge pull request #2875 from RedSoxFan/input-device-bindingsDrew DeVault
cmd_bind{sym,code}: Implement per-device bindings
2018-10-19Merge pull request #2877 from RyanDwyer/warp-on-workspace-switchDrew DeVault
Consider cursor warp when switching workspaces
2018-10-19Consider cursor warp when switching workspacesRyan Dwyer
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>`.
2018-10-18cmd_bind{sym,code}: Implement per-device bindingsBrian Ashworth
bindsym --input-device=<identifier> ... bindcode --input-device=<identifier> ...
2018-10-18Merge pull request #2874 from ianyfan/swaybarBrian Ashworth
swaybar: separate input code to new file
2018-10-18swaybar: separate input code to new fileIan Fan
2018-10-18Merge pull request #2871 from RyanDwyer/untangle-cursor-warpDrew DeVault
Remove cursor warping from seat_set_focus
2018-10-18Remove cursor warping from seat_set_focusRyan Dwyer
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.
2018-10-17Merge pull request #2868 from emersion/xcursor-envDrew DeVault
Export XCURSOR_SIZE and XCURSOR_THEME
2018-10-17Export XCURSOR_SIZE and XCURSOR_THEMEemersion
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
2018-10-17Merge pull request #2858 from RyanDwyer/fix-move-to-floating-wsDrew DeVault
Fix moving tiled containers to workspaces which only have floating views
2018-10-17Merge pull request #2864 from sghctoma/freebsd-fixesDrew DeVault
FreeBSD fixes
2018-10-17Merge pull request #2861 from RyanDwyer/fix-empty-workspace-crashesDrew DeVault
Fix crashes when running certain commands on an empty workspace
2018-10-17Merge pull request #2820 from Emantor/fix-mouse-warping-containerDrew DeVault
Fix mouse warping container
2018-10-17Merge pull request #2862 from SpeedJack/fix-stringop-overflowDrew DeVault
Fix overflow in strcpy
2018-10-17Set sysconfdir to /etc only if prefix is /usrsghctoma
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.
2018-10-17Fix stringop-overflow warningsNiccolò Scatena
2018-10-17Fix crashes when running certain commands on an empty workspaceRyan Dwyer
This fixes crashes when running the border, mark, unmark and title_format commands on an empty workspace.
2018-10-17Increase _POSIX_C_SOURCE to 200112Lsghctoma
CLOCK_MONOTONIC appeared in IEEE Std. 1003.1-200x, it was not part of POSIX.1b (the 1993 version), and FreeBSD treats it accordingly.
2018-10-17Fix moving tiled containers to workspaces which only have floating viewsRyan Dwyer
* 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.
2018-10-16Merge pull request #2843 from c-edw/feature/2842_TruncateMessageBrian Ashworth
swaynag: Truncate message to 2048 chars.
2018-10-16Merge branch 'master' into feature/2842_TruncateMessageBrian Ashworth
2018-10-16Merge pull request #2855 from SpeedJack/sysconfdir-fhs-compliantDrew DeVault
Make SYSCONFDIR FHS compliant when "prefix" is set
2018-10-16Truncate message, append buffer overflow message if too long.Connor E
Increase buffer size, remove macros. Make variables lowercase. Some more feedback.
2018-10-16Set SYSCONFDIR to /etc even when "prefix" is setNiccolò Scatena
SYSCONFDIR should be "/etc" even when prefix="/usr" to be FHS compliant. This is the default in meson from v0.44.
2018-10-16Revert "Fix SYSCONFDIR to include "prefix""Niccolò Scatena
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.
2018-10-16Merge pull request #2852 from RyanDwyer/back-and-forth-crashDrew DeVault
Fix crash when using workspace back_and_forth with no previous