summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* swaybar: fix workspace commandLibravatar Ian Fan2019-01-22
| | | | | Escape quotes and backslashes, allowing switching to workspace names like "1" (including quotes) and \
* Merge pull request #3496 from mstoeckl/fix-sanLibravatar Drew DeVault2019-01-22
|\ | | | | Fix dead stores found by scan-build
| * Fix dead stores found by scan-buildLibravatar M Stoeckl2019-01-22
|/ | | | | | | | In addition to removing unused code, two minor problems are fixed: (1) `resize set` and `resize adjust` did not error when given too many arguments. (2) `orientation` was incorrectly overridden to be 'U' for scroll events in the swaybar tray `handle_click` function.
* Merge pull request #3494 from ianyfan/commandsLibravatar Drew DeVault2019-01-22
|\ | | | | i3 command behaviour compatibility fixes
| * commands: allow setting floating on scratchpad containersLibravatar Ian Fan2019-01-22
| |
| * commands: allow tiled containers to be stickiedLibravatar Ian Fan2019-01-22
| | | | | | | | | | This also stops stickied containers from losing its sticky status when it is tiled, allowing it to be immediately stickied when floated again.
* | root_scratchpad_remove_container: do not showLibravatar Brian Ashworth2019-01-22
| | | | | | | | | | | | | | This removes the call to `root_scratchpad_show` from `root_scratchpad_remove_container` and places it in the `cmd_move_container`. This also moved the IPC `window::move` event to `cmd_scratchpad`.
* | util.c: remove numlen functionLibravatar Ian Fan2019-01-22
|/ | | | Its uses have been replaced by snprintf, which is more in line with its usage.
* Remove assumption that noop output will be called NOOP-1Libravatar Ryan Dwyer2019-01-22
|
* Don't allow noop output to be configuredLibravatar Ryan Dwyer2019-01-22
|
* Hide noop output in IPCLibravatar Ryan Dwyer2019-01-22
|
* Prevent noop output from being enabledLibravatar Ryan Dwyer2019-01-22
|
* Use noop output when there's no outputs connectedLibravatar Ryan Dwyer2019-01-22
| | | | | Instead of having NULL workspace->output pointers, use a noop output. This should be safer.
* seat_create: set initial focus for added seatsLibravatar Brian Ashworth2019-01-22
| | | | | | This sets the initial focus for all seats other than the first seat, which gets it focus on launch. The ensures that all seats have something focused.
* swaynag: Small graphical fix, add offset of +1 to X/Y.Libravatar Connor E2019-01-22
|
* Merge pull request #3485 from mstoeckl/minimize-depsLibravatar Brian Ashworth2019-01-22
|\ | | | | Remove wlroots dependency for sway(bar|bg|msg|nag)
| * Removed unused wlroots dependency for sway(bg|bar|msg|nag)Libravatar M Stoeckl2019-01-21
| | | | | | | | Also remove direct libm dependency where unused.
| * Fix edge case bug in numlen, dropping use of math.h functionsLibravatar M Stoeckl2019-01-21
| | | | | | | | | | (Specifically, numlen when called with INT_MIN gave an incorrect result, because abs(INT_MIN) == INT_MIN < 0.)
| * Move sway-specific functions in common/util.c into sway/Libravatar M Stoeckl2019-01-21
|/ | | | | | Modifier handling functions were moved into sway/input/keyboard.c; opposite_direction for enum wlr_direction into sway/tree/output.c; and get_parent_pid into sway/tree/root.c .
* swaybar: fix setting floating watcher slotsLibravatar Ian Fan2019-01-21
|
* Merge pull request #3480 from RedSoxFan/input-modes-improved-toggleLibravatar Drew DeVault2019-01-21
|\ | | | | input_cmd_events: allow toggle modes to be listed
| * input_cmd_events: allow toggle modes to be listedLibravatar Brian Ashworth2019-01-21
| | | | | | | | | | | | | | | | | | This extends `input <identifier> events toggle` to allow for an optional list of modes to toggle through. If no event modes are listed, all supported modes are cycled through (current behavior). If event modes are listed, they will be cycled through, defaulting to the first mode listed when the current mode is not in the list. This modes listed will also not be checked to see if the device supports them and may fail.
* | Merge pull request #3482 from emersion/meson-systemd-versionLibravatar Drew DeVault2019-01-21
|\ \ | | | | | | meson: set minimum systemd version
| * | meson: set minimum systemd versionLibravatar emersion2019-01-21
| |/ | | | | | | sd_bus_slot_set_floating has been introduced in systemd 239.
* | Fix one remaining wlr_log callLibravatar emersion2019-01-21
| |
* | Replace wlr_log with sway_logLibravatar M Stoeckl2019-01-21
| | | | | | | | | | | | | | | | | | | | | | | | | | This commit mostly duplicates the wlr_log functions, although with a sway_* prefix. (This is very similar to PR #2009.) However, the logging function no longer needs to be replaceable, so sway_log_init's second argument is used to set the exit callback for sway_abort. wlr_log_init is still invoked in sway/main.c This commit makes it easier to remove the wlroots dependency for the helper programs swaymsg, swaybg, swaybar, and swaynag.
* | Log libinput_config_status errorsLibravatar Brian Ashworth2019-01-21
|/ | | | | | This add errors from calls to `libinput_device_config_*_set` to the debug log. This may be useful when looking at issues related to input devices and config settings not working.
* Allocate minimum size necessary in pango text functions. (#3473)Libravatar Connor Edwards2019-01-20
| | | | | | * Allocate minimum size necessary in pango text functions. * Handle malloc failure.
* Merge pull request #3468 from emersion/fix-output-gain-crtcLibravatar Drew DeVault2019-01-20
|\ | | | | Fix re-enabling outputs gaining a CRTC
| * Fix re-enabling outputs gaining a CRTCLibravatar emersion2019-01-19
| | | | | | | | | | | | If output->configured is true, then the output has been modeset correctly and we don't need to try again. If output->enabled is true, then we are in the process of configuring the output and we shouldn't do anything.
* | Fix backup methods in get_socketpath for IPC clientLibravatar M Stoeckl2019-01-19
| | | | | | | | | | | | | | | | | | | | Previously, the success of `getline` was tested by checking if the buffer it allocates is nonempty and has a nonzero first byte. As `getline` does not explicitly zero out its memory buffer, this may fail (e.g., with AddressSanitizer). Instead, we check that at least one character was returned on standard output. Also, trailing newlines (if present) are now removed.
* | apply_output_config: remove output_iLibravatar Brian Ashworth2019-01-19
| | | | | | | | | | output_i was used in apply_output_config when swaybar used wl_output index numbers instead of xdg-output names. This is no longer needed.
* | swaynag: fix XDG_CONFIG_HOME handlingLibravatar emersion2019-01-19
|/
* Fix memory leaks in swaybarLibravatar M Stoeckl2019-01-19
|
* Prevent crashes in handle_transform and handle_scale tooLibravatar emersion2019-01-19
|
* Fix crash in cursor_rebase with multiple screensLibravatar emersion2019-01-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Designing the output configuration sequence without invalid state is tricky. We have one function, apply_output_config, that takes an output and (besides other things) performs a modeset and inserts the output in the output layout. The modeset can fail, in which case we don't want the output to be enabled. We also have an output_enable function, which calls output_apply_config and also configures the output's workspace and inserts it in the root container. Now, we have two choices. Either we configure the output before it's been inserted in the root container and then, if the modeset was successful, we insert it and create the workspace. The main issue with this approach is that configuring the output triggers a handful of signals, namely wlr_output.mode and wlr_output_layout.change. In those event handlers, we need to make sure to ignore these outputs in the process of being configured. Either we first insert the output, create the workspace and then try to configure it. It means we need to undo everything if the modeset fails. The main issue with this solution is that it enables and disables the output very quickly, creates a workspace and immediately destroys it, and maybe moves views back and forth (see output_evacuate). I've tried to make it so an output isn't enabled then immediately disabled. We already have code for ignoring outputs when the output is being destructed. Fixes https://github.com/swaywm/sway/issues/3462
* Merge pull request #3464 from emersion/meson-check-wlroots-xwaylandLibravatar Scott Anderson2019-01-19
|\ | | | | Make sure wlroots has been built with xwayland
| * meson: make sure wlroots has been built with xwaylandLibravatar emersion2019-01-18
|/
* Merge pull request #3452 from emersion/meson-featuresLibravatar Drew DeVault2019-01-18
|\ | | | | Use Meson feature options
| * meson: remove extraneous parenthesesLibravatar emersion2019-01-18
| |
| * meson: remove rpath optionsLibravatar emersion2019-01-18
| |
| * meson: remove unused dependenciesLibravatar emersion2019-01-18
| |
| * meson: add gdk-pixbuf and man-pages optionsLibravatar emersion2019-01-18
| |
| * Use Meson feature optionsLibravatar emersion2019-01-17
| |
* | Merge pull request #3460 from emersion/output-enable-segfaultLibravatar Drew DeVault2019-01-18
|\ \ | | | | | | Fix segfault in output_enable
| * | Fix segfault in output_enableLibravatar emersion2019-01-18
|/ /
* | Merge pull request #3457 from emersion/swaybg-no-escapeLibravatar Drew DeVault2019-01-18
|\ \ | | | | | | Don't escape swaybg arguments anymore
| * | Don't escape swaybg arguments anymoreLibravatar emersion2019-01-18
| |/ | | | | | | | | | | | | swaybg used to be invoked with sh, which made escaping necessary. This is no longer necessary. Fixes https://github.com/swaywm/sway/issues/3456
* | Merge pull request #3455 from emersion/output-no-crtcLibravatar Drew DeVault2019-01-18
|\ \ | | | | | | Better handle outputs without CRTC
| * | Better handle outputs without CRTCLibravatar emersion2019-01-18
|/ / | | | | | | | | | | | | This happens if you plug in more outputs than supported by your GPU. This patch makes it so outputs without CRTCs appear as disabled. As soon as they get a CRTC (signalled via the mode event), we can enable them.