summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* 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 #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
| * | Sway clients: Exit gracefully when compositor is unavailableLibravatar Ryan Dwyer2018-10-15
| | |
* | | Merge pull request #2835 from RyanDwyer/swap-crashLibravatar Drew DeVault2018-10-15
|\ \ \ | |/ / |/| | Fix crash in swap command
| * | Fix crash in swap commandLibravatar Ryan Dwyer2018-10-15
|/ / | | | | | | | | When swapping containers that are in the root of the workspace, parent will be NULL.
| * Prevent duplicate workspace::focus eventsLibravatar Ryan Dwyer2018-10-16
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Introduce seat_set_raw_focus and remove notify argument from seat_set_focus_warpLibravatar Ryan Dwyer2018-10-15
|/ | | | | | | | | | | | | | | | | | | | | | 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.
* Merge pull request #2831 from swaywm/move-output-docsLibravatar Drew DeVault2018-10-14
|\ | | | | Establish sway-output(5)
| * Establish sway-output(5)Libravatar Drew DeVault2018-10-14
| |
* | Merge pull request #2826 from RyanDwyer/common-eventloopLibravatar Drew DeVault2018-10-14
|\ \ | |/ |/| Implement common event loop for swaybar and swaylock
| * Event loop: Fix memmove and remove extraneous declarationLibravatar Ryan Dwyer2018-10-15
| |
| * Event loop: Free fds and fix race conditionLibravatar Ryan Dwyer2018-10-15
| |
| * Remove timerfd from loop implementationLibravatar Ryan Dwyer2018-10-15
| | | | | | | | | | 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.
| * swaylock: Don't wait too long for surface damage before verifyingLibravatar Ryan Dwyer2018-10-15
| |
| * swaylock: clear password after 10 secondsLibravatar Ryan Dwyer2018-10-15
| |
| * swaylock: Remove indicator after 3 secondsLibravatar Ryan Dwyer2018-10-15
| |
| * swaylock: Use common event loopLibravatar Ryan Dwyer2018-10-15
| |
| * Move swaybar's event loop to common directory and refactorLibravatar Ryan Dwyer2018-10-15
| | | | | | | | | | | | | | * 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.
* | Update README.MD (and README.*.md)Libravatar Drew DeVault2018-10-14
|/
* Document `border csd`Libravatar Drew DeVault2018-10-14
|
* Merge pull request #2751 from ianyfan/swaybarLibravatar Drew DeVault2018-10-14
|\ | | | | Bar mode/hidden_state events
| * swaybar: add documentation for hide/hidden_state subcommandsLibravatar Ian Fan2018-10-14
| |
| * swaybar: when hiding bar, save old height to be restored upon reshowLibravatar Ian Fan2018-10-14
| | | | | | | | | | | | | | | | 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.
| * swaybar: send signal to status when hiding or showing barLibravatar Ian Fan2018-10-14
| |
| * swaybar: show hidden bar on urgencyLibravatar Ian Fan2018-10-14
| |
| * swaybar: show hidden bar on key eventLibravatar Ian Fan2018-10-14
| | | | | | | | | | | | 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.
| * swaybar: handle mode/hidden_state changesLibravatar Ian Fan2018-10-14
| | | | | | | | | | | | | | | | | | 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.
| * swaybar: streamline ipc handlingLibravatar Ian Fan2018-10-14
| | | | | | | | | | | | | | 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.
| * swaybar: move mode & mode_pango_markup to bar structLibravatar Ian Fan2018-10-14
| | | | | | | | | | | | 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.
| * swaybar: only send initial workspace request if workspace buttons are enabledLibravatar Ian Fan2018-10-14
| |
| * swaybar: add free_hotspots helper functionLibravatar Ian Fan2018-10-14
| |
| * swaybar: only subscribe to required eventsLibravatar Ian Fan2018-10-14
| | | | | | | | | | This adds barconfig_update to the list of subscribed events, as well as checking when the other events need to be subscribed to.
| * swaybar: annotate wl_list properties in definitionsLibravatar Ian Fan2018-10-14
| |
| * swaybar: save id upon startupLibravatar Ian Fan2018-10-14
| | | | | | | | | | This adds an id property to the bar, which will be used to filter barconfig_update events
| * commands: fix sending bar mode/hidden_state updates to all barsLibravatar Ian Fan2018-10-14
|/ | | | | Previously, if a change was sent to all bars, it would only actually change the first bar it encountered, due to return value handling
* Merge pull request #2808 from RedSoxFan/bar-subcommandsLibravatar Drew DeVault2018-10-14
|\ | | | | Fix bar subcommand handler structs and selection