aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* Adhere to ICCCM focus specificationLibravatar BrassyPanache2021-01-20
| | | | | | | | For certain applications (e.g. JetBrains) the parent window controls input. We need to adhere to the ICCCM input focus specification to properly handle these cases. Relates to swaywm/wlroots#2604
* Log when config file is not foundLibravatar Simon Ser2021-01-17
| | | | | This happens when Sway is not installed on the system, so there's no default config in /etc.
* Raise verbosity of error message in load_main_configLibravatar Simon Ser2021-01-17
|
* Changed fprintf(stdout,...) to printf(...) for more readable codeLibravatar SpizzyCoder2021-01-16
|
* config/output: correct refresh rate rounding errorLibravatar Ronan Pigott2021-01-15
|
* swaymsg: use 3 digits for fractional part of the refresh rateLibravatar Ronan Pigott2021-01-15
| | | | | | | | The fractional part of the real number we want to represent never has more than 3 decimal digits, so use 3 decimal digits of precision. e.g. 'swaymsg -t get_outputs' would show a refresh rate of 59934 mHz as 59.933998 Hz, now correctly as 59.934 Hz.
* protocols: update layer-shell-unstable-v1 to v4Libravatar Simon Ser2021-01-12
| | | | | This is taken from wlr-protocols commit d1598e82240d ("layer-shell: add keyboard_interactivity.on_demand").
* Rename output_layer_for_each_surface_{toplevel,popup}Libravatar Simon Ser2021-01-12
| | | | Swap the "surface" part for consistency with wlroots' naming.
* Switch to wlr_xdg_surface_for_each_popup_surfaceLibravatar Simon Ser2021-01-12
| | | | | | | | Instead of calling wlr_xdg_surface_for_each_popup and then wlr_surface_for_each_surface, use the new for_each_popup_surface helper introduced in [1] that does it in one go. [1]: https://github.com/swaywm/wlroots/pull/2609
* Fix #5940Libravatar Mukundan3142021-01-11
| | | | Fallback to focused_statusline instead of statusline on focused output
* desktop/xwayland: use index constants for atom arrayLibravatar Simon Ser2021-01-08
| | | | This ensures we don't swap two atoms by mistake.
* man: update maintainerLibravatar Simon Ser2021-01-08
| | | | | Also remove the AUTHORS section from swaybar-protocol(7), for consistency with the rest of the man pages.
* readme: remove unused refLibravatar Simon Ser2021-01-08
|
* Remove call for action from WM enhancement issue templateLibravatar Simon Ser2021-01-04
| | | | | | | | | | | | i3 feature set is mostly frozen as well, so we shouldn't advise people to open feature requests there. Moreover, i3 will disregard feature requests from sway users (because it doesn't benefit the i3 project itself). There is now no good way to request new WM features, and this is by design. This aligns with [1]. [1]: https://github.com/swaywm/sway/commit/fc1148da7f9c7bfc81f29e2b8304ae4e1592d95d
* CONTRIBUTING.md: Add note on sway's scopeLibravatar Drew DeVault2021-01-04
|
* cmd_move: update container representation in sibling swapsLibravatar Ronan Pigott2021-01-04
|
* input/seat: Reset command handler context in seat_destroy()Libravatar Andri Yngvason2021-01-01
| | | | This fixes a dangling reference which causes a use-after-free.
* input/seat: Clean up focus_stack in seat_destroy()Libravatar Andri Yngvason2021-01-01
| | | | This fixes use-after-free when seat_destroy() has been called.
* input: Clean up input_method_relay in seat_destoy()Libravatar Andri Yngvason2021-01-01
| | | | | This fixes a crash that happens when input_method_new or text_method_new events are emitted after the seat has been freed.
* Remove create_renderer_func argumentLibravatar Simon Ser2020-12-30
| | | | | | It's removed upstream [1]. [1]: https://github.com/swaywm/wlroots/pull/2561
* ci: enable basu on freebsdLibravatar Jan Beich2020-12-29
|
* Remove Patreon links from README.*.mdLibravatar Drew DeVault2020-12-26
|
* Remove .github/FUNDING.ymlLibravatar Drew DeVault2020-12-26
| | | | | Since I'm no longer a maintainer of, or regular contributor to, this project, it doesn't make sense to solicit donations.
* grimshot: Fix man page issuesLibravatar William Culhane2020-12-26
| | | | | | | This fixes a few formatting errors in SYNOPSIS, moves the command options out of SYNOPSIS, swaps the labels on the SYNOPSIS and DESCRIPTION sections, creates an EXAMPLES section and slightly rewords parts of the OPTIONS, DESCRIPTION, EXAMPLES, and OUTPUT sections.
* container: set fullscreen mode before attempting focusLibravatar Ronan Pigott2020-12-24
|
* workspace: rework workspace prev|next like i3Libravatar Ronan Pigott2020-12-20
| | | | | Changes workspace prev|next commands to visit each numbered or named workspace first before considering workspace from the other category
* commands/move: reset geometry of promoted containersLibravatar Ronan Pigott2020-12-20
|
* commands/move: squash workspace after directional con moveLibravatar Ronan Pigott2020-12-20
|
* introduce workspace_squashLibravatar Ronan Pigott2020-12-20
| | | | | | | | | | | | | | | | | | workspace_squash is container_flatten in the reverse direction. Instead of eliminating redundant splits that are parents of the target container, it eliminates pairs of redundant H/V splits that are children of the workspace. Splits are redundant if a con and its grandchild have the same layout, and the immediate child has the opposite split. For example, layouts are transformed like: H[V[H[app1 app2]] app3] -> H[app1 app2 app3] i3 uses this operation to simplify the tree after moving heavily nested containers to a higher level in the tree via an orthogonal move.
* commands/move: rework container_move_in_directionLibravatar Ronan Pigott2020-12-20
| | | | | | | | | | This changes the move command to better match i3 behavior after the layout changes. workspace_rejigger handled the case where containers would escape their workspace in an orthogonal move by changing the layout to accomodate them, but this case is now handled within the loop.
* Change workspace_layout to match i3 behaviorLibravatar Ronan Pigott2020-12-20
| | | | | | | In i3, the workspace_layout command does not affect the workspace layout. Instead, new workspace level containers are wrapped in the desired layout and the workspace layout always defaults to the output orientation.
* Revert "commands/move: maintain workspace_layout when moving"Libravatar Ronan Pigott2020-12-20
| | | | | | | This is in preparation for changing the workspace_layout command to work like it does in i3. This reverts commit b4a75a1ab2a72842830aeea37733311f85e6f660.
* commands/move: don't flatten on move; reap empty former parent insteadLibravatar Tudor Brindus2020-12-20
| | | | | | | | | | | | | | | | | | Some comparisons of current Sway versus i3 behavior: 1) T[T[T[app]]] + move left * Sway: T[app] * i3: T[T[app]] 2) H[V[H[V[app]]]] + move left * Sway: H[app] * i3: H[V[app]] After this commit, Sway behavior matches i3. The intermediate states are now: T[T[T[app]]] -> T[T[app T[]]] -> T[T[app]] H[V[H[V[app]]]] -> H[V[app H[V[]]]] -> H[V[app]]
* commands/layout: don't change the layout of workspaces with childrenLibravatar Ronan Pigott2020-12-20
| | | | | | In i3 the layout command on a workspace affects the workspace layout only on empty workspaces. Otherwise children are placed in a new container with the desired layout to preserve the workspace layout.
* container: don't split single childrenLibravatar Ronan Pigott2020-12-20
| | | | | | In i3 splits are ineffective on singleton H/V containers, and the command is interpreted to affect the parent layout instead.
* Test output before direct scan-outLibravatar Simon Ser2020-12-20
| | | | | | | | | | | This avoids some log spam. Eventually when we wire up the atomic test commit this will take care of the other log spam referenced below. References: https://github.com/swaywm/sway/pull/5010 References: https://github.com/swaywm/wlroots/issues/2181 Closes: https://github.com/swaywm/wlroots/issues/2532
* readme: use references for linksLibravatar Simon Ser2020-12-18
| | | | This avoids cluttering the README text with URLs.
* ISSUE_TEMPLATE: the wiki is community maintainedLibravatar Rouven Czerwinski2020-12-18
| | | | | | Mention that the github wiki may contain outdated information scripts and old workarounds and that sway the sway project does not provide support for it.
* readme: remove link to non-existing wiki pageLibravatar Simon Ser2020-12-18
|
* readme: releases are signed with E88F5E48Libravatar Simon Ser2020-12-18
| | | | See https://github.com/swaywm/wlroots/issues/2462#issuecomment-723578521
* Fix swaybar tray for non-systemdLibravatar Arav K2020-12-16
| | | | | | | Meson's generated config.h header defines false macros as 0, not undefined. This means that the header line, which was checking for the definition existing, not a non-zero value, was incorrect. Now the swaybar tray can be used with systemd, elogind, or basu.
* ci: fix archlinux buildsLibravatar Ronan Pigott2020-12-14
| | | | | | | The "xorg-server-xwayland" package has become "xorg-xwayland" in Arch. Our egl requirement was previously satisfied by xorg-server-xwayland's dependency on libgl, which "xorg-xwayland" does not have. So add the libegl dependency as well.
* common/log: write log importanceLibravatar Simon Ser2020-12-10
| | | | | | | | | | When colors aren't used, write the log importance to stderr. This makes it easier to grep for errors and avoids mistaking error messages for debug messages. This is [1] ported to Sway. [1]: https://github.com/swaywm/wlroots/pull/2149
* Route wlroots logs into Sway logging infrastructureLibravatar Simon Ser2020-12-09
| | | | | | | | | | Instead of letting wlroots print messages to stdout, route debugging messages into Sway's logging functions. This allows a more consistent output (e.g. if Sway or wlroots changes its output style, they don't get out-of-sync). I also added a [wlr] prefix to wlroots messages, not yet sure it's a good thing.
* build: add basu as sd-bus providerLibravatar Simon Ser2020-12-09
|
* build: introduce sd-bus-provider optionLibravatar Simon Ser2020-12-09
| | | | This allows to select a specific provider for the sd-bus library.
* build: use WLR_HAS_* to decide whether suid is requiredLibravatar Simon Ser2020-12-09
| | | | | | | | Maybe systemd/elogind is found but wlroots was built without them. Print the warning message depending on the WLR_HAS_* defines instead. While at it, don't print the message if wlroots has been build with libseat.
* Handle secondary headless backend failuresLibravatar Simon Ser2020-12-08
|
* Drop gtk-primary-selection supportLibravatar Isaac Freund2020-12-08
|
* Add layer shell subsurfacesLibravatar Vlad Pănăzan2020-12-07
| | | | | | | Damage subsurfaces created by layer surfaces on map, unmap and commit. This fixes the flicker of Gtk Popovers. Fixes #5617