aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-17Fix stringop-overflow warningsNiccolò Scatena
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
2018-10-16view: rewarp cursor during view_unmapRouven Czerwinski
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.
2018-10-16seat: use new warping functions for cursor warping during focus warpRouven Czerwinski
2018-10-16cursor: functions to warp cursor to container and workspaceRouven Czerwinski
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.
2018-10-16view: move arrange_workspace into view_mapRouven Czerwinski
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
2018-10-16Fix crash when using workspace back_and_forth with no previousRyan Dwyer
2018-10-16Merge pull request #2836 from RyanDwyer/set-set-raw-focusIan Fan
Introduce seat_set_raw_focus and remove notify argument from seat_set_focus_warp
2018-10-16Merge branch 'master' into set-set-raw-focusIan Fan
2018-10-16Prevent duplicate workspace::focus eventsRyan Dwyer
Previously we would compare the last focus's workspace with the new focus's workspace to determine if we need to emit an IPC workspace::focus event. This doesn't work when moving the focused container to a new workspace. This adds a workspace property to the seat which stores the last emitted workspace::focus workspace. Using this method, after moving the container, refocusing it will trigger exactly one workspace::focus event: from the old workspace to the new workspace.
2018-10-15Merge pull request #2845 from colemickens/posix_clockDrew DeVault
common/loop.c: add _POSIX_C_SOURCE for clock_gettime and CLOCK_MONOTONIC
2018-10-15common/loop.c: add _POSIX_C_SOURCE for clock_gettime and CLOCK_MONOTONICCole Mickens
2018-10-15Merge pull request #2839 from RyanDwyer/swaylock-versionDrew DeVault
Fix swaylock version string
2018-10-16Fix swaylock version stringRyan Dwyer
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.
2018-10-15Merge pull request #2838 from RyanDwyer/compositor-unavailable-crashDrew DeVault
Sway clients: Exit gracefully when compositor is unavailable
2018-10-15Merge pull request #2835 from RyanDwyer/swap-crashDrew DeVault
Fix crash in swap command
2018-10-15Sway clients: Exit gracefully when compositor is unavailableRyan Dwyer
2018-10-15Introduce seat_set_raw_focus and remove notify argument from seat_set_focus_warpRyan Dwyer
This introduces seat_set_raw_focus: a function that manipulates the focus stack without doing any other behaviour whatsoever. There are a few places where this is useful, such as where we set focus_inactive followed by another call to set the real focus again. With this change, the notify argument to seat_set_focus_warp is also removed as these cases now use the raw function instead. A bonus of this is we are no longer emitting window::focus IPC events when setting focus_inactive, nor are we sending focus/unfocus events to the surface. This also fixes the following: * When running `move workspace to output <name>` and moving the last workspace from the source output, the workspace::focus IPC event is no longer emitted for the newly created workspace. * When splitting the currently focused container, unfocus/focus events will not be sent to the surface when giving focus_inactive to the newly created parent, and window::focus events will not be emitted.
2018-10-15Fix crash in swap commandRyan Dwyer
When swapping containers that are in the root of the workspace, parent will be NULL.
2018-10-14Merge pull request #2831 from swaywm/move-output-docsDrew DeVault
Establish sway-output(5)
2018-10-14Establish sway-output(5)Drew DeVault
2018-10-14Merge pull request #2826 from RyanDwyer/common-eventloopDrew DeVault
Implement common event loop for swaybar and swaylock
2018-10-14Update README.MD (and README.*.md)Drew DeVault
2018-10-15Event loop: Fix memmove and remove extraneous declarationRyan Dwyer
2018-10-15Event loop: Free fds and fix race conditionRyan Dwyer
2018-10-15Remove timerfd from loop implementationRyan Dwyer
timerfd doesn't work on the BSDs, so this replaces it with a timespec for the expiry and uses a poll timeout to check the timers when needed.
2018-10-15swaylock: Don't wait too long for surface damage before verifyingRyan Dwyer
2018-10-15swaylock: clear password after 10 secondsRyan Dwyer
2018-10-15swaylock: Remove indicator after 3 secondsRyan Dwyer
2018-10-15swaylock: Use common event loopRyan Dwyer
2018-10-15Move swaybar's event loop to common directory and refactorRyan Dwyer
* The loop functions are now prefixed with `loop_`. * It is now easy to add timers to the loop. * Timers are implemented using pollfd and timerfd, rather than manually checking them when any other event happens to arrive.
2018-10-14Document `border csd`Drew DeVault
2018-10-14Merge pull request #2751 from ianyfan/swaybarDrew DeVault
Bar mode/hidden_state events
2018-10-14swaybar: add documentation for hide/hidden_state subcommandsIan Fan
2018-10-14swaybar: when hiding bar, save old height to be restored upon reshowIan Fan
Previously, when the bar was hidden, the height would be set to 0. This meant that if the bar was empty upon reshow, it would not render since the height was still 0, which made it seem there was a problem. Now, the height is not reset, but the width is, to indicate upon reshow that the layer surface needed reconfiguring.
2018-10-14swaybar: send signal to status when hiding or showing barIan Fan
2018-10-14swaybar: show hidden bar on urgencyIan Fan
2018-10-14swaybar: show hidden bar on key eventIan Fan
Since wayland does not currently allow swaybar to create global keybinds, this is handled within sway and sent to the bar using a custom event, so as not to pollute existing events, called bar_state_update.
2018-10-14swaybar: handle mode/hidden_state changesIan Fan
As well as adding the hidden_state property to the bar config struct, this commit handles barconfig_update events when the mode or hidden_state changes, and uses a new function determine_bar_visibility to hide or show the bar as required, using, respectively, destroy_layer_surface, which is also newly added, and add_layer_surface, which has been changed to allow dynamically adding the surface.
2018-10-14swaybar: streamline ipc handlingIan Fan
The received json is handled outside of the case statement, which will allow better extensibility. This commit also introduces the variable bar_is_dirty, the return value signifying whether the bar requires rendering.
2018-10-14swaybar: move mode & mode_pango_markup to bar structIan Fan
This distinguishes the binding mode from the distinct config mode, as well as removing mode_pango_markup from the config struct where it should not be present.
2018-10-14swaybar: only send initial workspace request if workspace buttons are enabledIan Fan