summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorLines
2019-08-20layer-shell: add support for popups1.2-rc2Drew DeVault-9/+182
2019-08-20properly check pixman_region32_contains_rectangle returnIlia Bozhinov-3/+4
pixman_region32_contains_rectangle() returns pixman_region_intersection_t not a bool.
2019-08-20input/seatop_down: add axis handlerBrian Ashworth-0/+16
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.
2019-08-20sway{,-bar}.5: add link to pango font descriptionBrian Ashworth-2/+7
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
2019-08-20workspace_split: focus middle if workspace focusedBrian Ashworth-0/+7
In workspace_split, the middle container that wraps the workspace's children should be focused for any seat that is focusing the workspace
2019-08-20container_replace: copy {width,height}_fractionBrian Ashworth-0/+4
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.
2019-08-20swaymsg.1: add tip about two hyphens for commandsBrian Ashworth-0/+5
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.
2019-08-20workspace: do not destroy if any seat is focusingBrian Ashworth-0/+10
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
2019-08-20handle_seat_node_destroy: do not focus own nodeBrian Ashworth-1/+1
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
2019-08-20Remove redundant checksAntonin Décimo-4/+3
2019-08-20Fix memory leaksAntonin Décimo-0/+2
2019-08-20view_update_size: fix surface_width/height mismatchAntonin Décimo-1/+1
2019-08-20input: check pointer against nullptrAntonin Décimo-1/+1
2019-08-20ipc-client: remove useless free for failed mallocAntonin Décimo-1/+0
2019-08-20layer_shell: Guard against negative exclusive zoneSebastian Krzyszkowiak-1/+1
This can happen with surfaces that set negative margins.
2019-08-09Remove rootston from build manifests1.2-rc1Drew DeVault-2/+2
2019-08-07Revert "Add support for wlr_output's atomic API"Rouven Czerwinski-26/+27
This reverts commit 6e0565e9de4247bbf0ca662565c58e0a54258d6e. This is required for the revert on swaywm/wlroots#1781
2019-08-07sway.5: explain how to enable pango markup in fontBrian Ashworth-2/+5
This clarifies the syntax to use for the font command to enable pango markup support.
2019-08-07config/output: rebase cursors after config appliedBrian Ashworth-0/+8
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.
2019-08-06cmd_mode: make modes case sensitiveBrian Ashworth-2/+1
This mirrors a change in i3 4.17 that makes binding modes case sensitive
2019-08-06swaymsg: return 2 for sway errorsBrian Ashworth-1/+14
This mirrors a change in i3 4.17 that returns 2 for errors from sway, including invalid command, command failed, and invalid subscription requests
2019-08-06input/cursor: do not hide when buttons are pressedBrian Ashworth-2/+7
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.
2019-08-06cmd_swap: add floating supportBrian Ashworth-11/+42
For feature parity with i3 4.17, this just adds floating container support to the swap command
2019-08-05cmd_opacity: add relative opacity changesJeff Peeler-18/+21
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
2019-08-03input/libinput: typo fixes (get -> get_default)Brian Ashworth-2/+2
This just fixes some typos in the reset functions that were using the get calls instead of get_default
2019-08-02Remove unused variableAntonin Décimo-3/+0
2019-08-02Allocator sizeof operand mismatchAntonin Décimo-1/+1
Result of 'calloc' is converted to a pointer of type 'char *', which is incompatible with sizeof operand type 'char **'
2019-08-02Add support for wlr_output's atomic APISimon Ser-27/+26
See https://github.com/swaywm/wlroots/pull/1762
2019-08-01bindsym/code: add group supportBrian Ashworth-15/+76
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.
2019-08-01input/keyboard: don't reset layout for same keymapBrian Ashworth-24/+32
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.
2019-07-31Fix typo in sway(5) manpagePaul Ouellette-1/+1
2019-07-31libinput: fix set_send_eventsBrian Ashworth-1/+1
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
2019-07-28input/libinput: fix typo in set_middle_emulationBrian Ashworth-1/+1
This fixes a typo in set_middle_emulation where it would set left handed instead of middle emulation.
2019-07-27Fix resize sibling amount calculationsPedro Côrte-Real-11/+15
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
2019-07-27Remove all wayland-server.h includesSimon Ser-14/+13
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").
2019-07-27Avoid adding duplicate criteria for no_focus and commandAshkan Kiani-0/+53
2019-07-26arrange: remove gaps for workspace location deltasBrian Ashworth-2/+2
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.
2019-07-23ipc: add input::libinput_config eventBrian Ashworth-432/+400
This adds a libinput_config change type to the input event for when the libinput config for a device changes In order for this to be possible to track, the libinput config code had to be refactored. It is now extracted into a separate file to isolate it from the rest of the input management code.
2019-07-23ipc: add an input eventBrian Ashworth-0/+107
This adds an ipc event related to input devices. Currently the following changes are supported: - added: when an input device becomes available - removed: when an input device is no longer available - xkb_keymap_changed: (keyboards only) the keymap changed - xkb_layout_changed: (keyboards only) the effective layout changed
2019-07-18input_cmd_xkb_switch_layout: support input typesBrian Ashworth-0/+1
This just adds input type config support to input_cmd_xkb_switch_layout so that `input type:keyboard xkb_switch_layout <idx>` will work
2019-07-17cmd_output: support current output aliasBrian Ashworth-2/+29
Similar to seat command, this provides an alias for the current output. Instead of the output name or identifier, `-` can be used to operate on the focused output by name and `--` can be used to operate on the focused output by its identifier. This will prevent operating on the no-op output when using either alias.
2019-07-17input_cmd_xkb_*: cleanup includesEd Younis-9/+1
2019-07-17Implement input_cmd_xkb_file (#3999)Ed Younis-9/+90
Adds a new commend "xkb_file", which constructs the internal xkb_keymap from a xkb file rather than an RMLVO configuration. This allows greater flexibility when specifying xkb configurations. An xkb file can be dumped with the xkbcomp program.
2019-07-17Add missing description for focus_on_window_activation command in docs.rpigott-0/+7
2019-07-17Added Dutch translation of READMEjasperro-1/+67
2019-07-17Update output manager on layout changeJosef Gajdusek-0/+13
The output manager config was not properly updated if the position of the output got changed.
2019-07-17Make fullscreen check for fullscreen parentsSauyon Lee-2/+9
This ensures that a child of a fullscreen container cannot be fullscreened.
2019-07-15Sanity check gaps on the outside of the workspacePedro Côrte-Real-0/+19
Avoid gaps that are too large around the workspace that you end up without any usable space for children. Fixes #4308
2019-07-15Avoid negative outer gapsPedro Côrte-Real-22/+5
Make sure we never let the gaps around the workspace go negative. Fixes #4304
2019-07-15Sanity check gaps between tiled containersPedro Côrte-Real-4/+11
When the gaps become too large for the space available gracefully reduced them all the way to 0 if needed. Fixes #4294