aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* Update version to 1.21.2v1.2Libravatar Drew DeVault2019-08-27
|
* cmd_mode: don't reset to default after subcommandLibravatar Brian Ashworth2019-08-27
| | | | | | In cmd_mode, the mode is currently being reset to the default mode after a mode subcommand handler is executed. This stores and restores the mode instead
* Further refinements to _incr_version scriptLibravatar Drew DeVault2019-08-27
|
* chmod +x contrib/_incr_versionLibravatar Drew DeVault2019-08-27
|
* Add _incr_version to contrib/Libravatar Drew DeVault2019-08-27
|
* A layer-shell will only be focused if it is non-nullLibravatar asdfjkluiop2019-08-27
|
* Fix formatting for title_format in man 5 swayLibravatar Michael Aquilina2019-08-27
| | | | | Use explicit linebreaks to make scdoc use a separate line for each entry listed
* Update titlebar borders to match i3's current behavior.Libravatar Dark2019-08-27
|
* cmd_move: fix move to scratchpad hidden containerLibravatar Brian Ashworth2019-08-27
| | | | | | | | | When moving to a scratchpad hidden container (using `move [window|container] [to] mark <mark>`), this moves the container to the scratchpad (equivalent to `move [window|container] [to] scratchpad`). Previously, this would crash since the destination did not have a workspace.
* ipc: collapse multi-container command resultsLibravatar Laurent Bonnans2019-08-27
| | | | | | | | | Match i3's behavior and only return one status response per command, even if it applies to several nodes. Also returns an error if the criteria returns an empty match. Closes #4483
* Allow moving a container hidden in scratchpadLibravatar lbonn2019-08-27
| | | | | | | (as i3 allows it) Just update the container's coordinates so that they will be applied at the next show.
* sway.5: remove mention of floating_scrollLibravatar Brian Ashworth2019-08-27
| | | | | | | It looks like floating_scroll was still in the sway(5) man page as a remnant of the 0.x era. This just removes it from the man page since it is no longer a valid command. Mouse bindings with Button4-7 can be used instead
* input/keyboard: send released only if pressed sentLibravatar Brian Ashworth2019-08-27
| | | | | | | | | | This keeps track of whether surfaces received a key press event and will only send a key release event if the pressed event was sent. This also requires changing the keycodes that are sent via wl_keyboard_enter to only include those that were previously sent. This makes it so surfaces do not receive key release events for keys that they never received a key press for and makes it so switching focus doesn't leak keycodes that were consumed by bindings.
* layer-shell: add support for popups1.2-rc2Libravatar Drew DeVault2019-08-20
|
* properly check pixman_region32_contains_rectangle returnLibravatar Ilia Bozhinov2019-08-20
| | | | | pixman_region32_contains_rectangle() returns pixman_region_intersection_t not a bool.
* input/seatop_down: add axis handlerLibravatar Brian Ashworth2019-08-20
| | | | | | | | This adds an axis handler to seatop_down so that it is possible to manually scroll while having a mouse button down. This is mainly useful for selecting text. Some applications may not automatically scroll when the cursor is near the edge of the application or the user may just prefer manually scrolling for more control over the scrolling speed.
* sway{,-bar}.5: add link to pango font descriptionLibravatar Brian Ashworth2019-08-20
| | | | | | This just specifies that both cmd_font and bar_cmd_font should be specified using the pango font description and adds a link to the pango documentation regarding the font description
* workspace_split: focus middle if workspace focusedLibravatar Brian Ashworth2019-08-20
| | | | | In workspace_split, the middle container that wraps the workspace's children should be focused for any seat that is focusing the workspace
* container_replace: copy {width,height}_fractionLibravatar Brian Ashworth2019-08-20
| | | | | | | | This copies the width and height fractions from the container to the container replacing it. Without setting these values, the container is treated as a new container and throws off the existing sizing. Since one container is replacing the other, it makes sense for the sizing to remain the same.
* swaymsg.1: add tip about two hyphens for commandsLibravatar Brian Ashworth2019-08-20
| | | | | | This adds a tip to the command section about using two hyphens before a command to signal that no swaymsg options will follow to allow for sway commands with leading hyphens.
* workspace: do not destroy if any seat is focusingLibravatar Brian Ashworth2019-08-20
| | | | | | | Since each seat has its own focus, do not destroy a workspace until it is no longer focused by any seat. This prevents seats from being forced to evacuate the workspace just because another seat switched focus away from it
* handle_seat_node_destroy: do not focus own nodeLibravatar Brian Ashworth2019-08-20
| | | | | | | | | | In handle_seat_node_destroy, it was possible to focus the node attached to the seat node that is being destroyed when an empty workspace was being destroyed in a multiple seat environment. This resulted in infinite recursion when attempting to destroy the workspace. This just moves the seat node destruction higher so it cannot be the focus inactive for the seat. This is the same ordering that is applied to destruction of seat nodes for containers
* Remove redundant checksLibravatar Antonin Décimo2019-08-20
|
* Fix memory leaksLibravatar Antonin Décimo2019-08-20
|
* view_update_size: fix surface_width/height mismatchLibravatar Antonin Décimo2019-08-20
|
* input: check pointer against nullptrLibravatar Antonin Décimo2019-08-20
|
* ipc-client: remove useless free for failed mallocLibravatar Antonin Décimo2019-08-20
|
* layer_shell: Guard against negative exclusive zoneLibravatar Sebastian Krzyszkowiak2019-08-20
| | | | This can happen with surfaces that set negative margins.
* Remove rootston from build manifests1.2-rc1Libravatar Drew DeVault2019-08-09
|
* Revert "Add support for wlr_output's atomic API"Libravatar Rouven Czerwinski2019-08-07
| | | | | | This reverts commit 6e0565e9de4247bbf0ca662565c58e0a54258d6e. This is required for the revert on swaywm/wlroots#1781
* sway.5: explain how to enable pango markup in fontLibravatar Brian Ashworth2019-08-07
| | | | | This clarifies the syntax to use for the font command to enable pango markup support.
* config/output: rebase cursors after config appliedLibravatar Brian Ashworth2019-08-07
| | | | | | | When applying an output config, an output may transform or be altered in some way that effects the cursor. In order for the cursor images to be updated properly, all cursors need to be rebased after applying output configs.
* cmd_mode: make modes case sensitiveLibravatar Brian Ashworth2019-08-06
| | | | | This mirrors a change in i3 4.17 that makes binding modes case sensitive
* swaymsg: return 2 for sway errorsLibravatar Brian Ashworth2019-08-06
| | | | | | This mirrors a change in i3 4.17 that returns 2 for errors from sway, including invalid command, command failed, and invalid subscription requests
* input/cursor: do not hide when buttons are pressedLibravatar Brian Ashworth2019-08-06
| | | | | | This just adds a small quality of life improvement to the cursor hiding functionality. The cursor will no longer be hidden unless all buttons are released.
* cmd_swap: add floating supportLibravatar Brian Ashworth2019-08-06
| | | | | For feature parity with i3 4.17, this just adds floating container support to the swap command
* cmd_opacity: add relative opacity changesLibravatar Jeff Peeler2019-08-05
| | | | | | | | | | | | | | | | | | | This enhances the opacity command to support relative assignment as well as the currently implemented absolute assignment. The syntax is copied from the same format that gaps uses for relative and absolute setting. An example usage in a sway config looks like: // relative change (this feature) bindsym button4 opacity plus .1 bindsym button5 opacity minus .1 // absolute change (this feature) bindsym button4 opacity set 1 bindsym button5 opacity set .3 // old way, still supported bindsym button4 opacity 1 bindsym button5 opacity .3
* input/libinput: typo fixes (get -> get_default)Libravatar Brian Ashworth2019-08-03
| | | | | This just fixes some typos in the reset functions that were using the get calls instead of get_default
* Remove unused variableLibravatar Antonin Décimo2019-08-02
|
* Allocator sizeof operand mismatchLibravatar Antonin Décimo2019-08-02
| | | | | Result of 'calloc' is converted to a pointer of type 'char *', which is incompatible with sizeof operand type 'char **'
* Add support for wlr_output's atomic APILibravatar Simon Ser2019-08-02
| | | | See https://github.com/swaywm/wlroots/pull/1762
* bindsym/code: add group supportLibravatar Brian Ashworth2019-08-01
| | | | | | | | | | | This adds support for specifying a binding for a specific group. Any binding without a group listed will be available in all groups. The priority for matching bindings is as follows: input device, group, and locked state. For full compatibility with i3, this also adds Mode_switch as an alias for Group2. Since i3 only supports this for backwards compatibility with older versions of i3, it is implemented here, but not documented.
* input/keyboard: don't reset layout for same keymapLibravatar Brian Ashworth2019-08-01
| | | | | | | In sway_keyboard_config, do not change the keymap when the new keymap is unchanged, unless this is during a config reload. The reasoning for this is to prevent the effective layout from being reset to index 0 for input config changes unrelated to the keymap.
* Fix typo in sway(5) manpageLibravatar Paul Ouellette2019-07-31
|
* libinput: fix set_send_eventsLibravatar Brian Ashworth2019-07-31
| | | | | | | This just fixes the check in set_send_events for whether the mode has changed. LIBINPUT_CONFIG_SEND_EVENTS_ENABLED is 0 so the bitmask check cannot be fixed, but Sway doesn't allow multiple modes to be set anyway (not really sure why you would need to) so a basic equality check works
* input/libinput: fix typo in set_middle_emulationLibravatar Brian Ashworth2019-07-28
| | | | | This fixes a typo in set_middle_emulation where it would set left handed instead of middle emulation.
* Fix resize sibling amount calculationsLibravatar Pedro Côrte-Real2019-07-27
| | | | | | | | | | | | Sibling amounts were being calculated after the original fraction had been altered. This led to broken resize amounts. Fix that by calculating things upfront before adjusting values which also makes the code cleaner. For sanity checks also calculate the sibling amount with the ceiling so we never go below the sanity check even by one pixel. Fixes #4386
* Remove all wayland-server.h includesLibravatar Simon Ser2019-07-27
| | | | | | | | | | | | | | | The documentation for wayland-server.h says: > Use of this header file is discouraged. Prefer including > wayland-server-core.h instead, which does not include the server protocol > header and as such only defines the library PI, excluding the deprecated API > below. Replacing wayland-server.h with wayland-server-core.h allows us to drop the WL_HIDE_DEPRECATED declaration. This commit si similar to wlroots' ca45f4490ccc ("Remove all wayland-server.h includes").
* Avoid adding duplicate criteria for no_focus and commandLibravatar Ashkan Kiani2019-07-27
|
* arrange: remove gaps for workspace location deltasLibravatar Brian Ashworth2019-07-26
| | | | | | | | | When arranging the workspace, prev_x and prev_y should be ignoring the current gaps otherwise the workspace diff_x and diff_y location deltas will be off. When the deltas are off, each arrangement of the workspace would incorrectly move floaters an extra -workspace->current_gaps.left along the x-axis and an extra -workspace->current_gaps.top along the y-axis.