aboutsummaryrefslogtreecommitdiffstats
path: root/sway
Commit message (Collapse)AuthorAge
* Fix syntax in examples in sway-output(5)Libravatar Arkadiusz Hiler2019-10-02
| | | | | | | | Some examples use comma to separate x and y for setting the output position which is wrong. Let's change it to spaces, as correctly demonstrated in the `output <name> position|pos <X> <Y>` section.
* layer-shell: Fix damage tracking of nested popupsLibravatar Sebastian Krzyszkowiak2019-09-29
| | | | | | Popups are positioned relative to local surface coordinates of the parent surface. There's no need to consider values set with xdg_surface.set_window_geometry for parent surfaces.
* Fix direct scan-out flickeringLibravatar Simon Ser2019-09-26
| | | | | | | | | | | | | | | | | | | Sometimes when using direct scan-out, some flickering between the fullscreen app and the regular desktop could be seen. This happened because we called wlr_output_attach_render and then wlr_output_attach_buffer for direct scan-out. wlr_output_attach_render makes the OpenGL context current but also attaches the OpenGL buffer to the primary plane apparently (all of this happens inside eglMakeCurrent). This patch moves the scan-out logic outside of output_render, before wlr_output_attach_render. This lines it up with rootston's implementation. This also makes more sense since no rendering is involved when using direct scan-out. Sorry about that, I should've tested this with more clients. The new code has been tested with mpv and a GLFW demo.
* input: Add support for tablet protocol.Libravatar John Chadwick2019-09-25
| | | | | | Sway has basic support for drawing tablets, but does not expose properties such as pressure sensitivity. This implements the wlr tablet v2 protocol, providing tablet events to Wayland clients.
* Add support for fullscreen view direct scan-outLibravatar Simon Ser2019-09-25
|
* view: create container before selecting workspaceLibravatar Ronan Pigott2019-09-22
|
* Error out on unknown debug flagLibravatar Simon Ser2019-09-22
| | | | | Otehrwise it's pretty easy to misremember a flag and think damage=rerender is enabled when it's not.
* view: always populate pidLibravatar Brian Ashworth2019-09-20
| | | | | | | If the view was mapped as fullscreen or the view was assigned either a workspace or output, the pid was not being populated since it was occurring as part of the pid mapping check in select_workspace. This extracts the pid population and makes it so it is always executed
* render: set surface as sampled for presentationLibravatar Ivan Molodetskikh2019-09-19
|
* sway-output.5: fix variable nameLibravatar Martin Michlmayr2019-09-11
| | | | | __foo__ is verbatim in scdoc, but we want the variable foo in italic, i.e. _foo_.
* sway.5: clarify that a marks are unqiueLibravatar Brian Ashworth2019-09-05
| | | | | This just clarifies that a mark can only be set for a single window since they are used as unique identifiers
* Fix type (an -> and)Libravatar Nils ANDRÉ-CHANG2019-09-05
|
* Do not search for edges on subsurfaces, fix #4381Libravatar Versus Void2019-09-05
| | | | | | | Subsurfaces (in most cases popups) aren't decorated by sway and will never have any borders, but may be drawn beyond container boundaries producing false positive when searching for edge. So we want to skip edge search when handling mouse event on subsurface.
* swaybar: complete barconfig_update event handlingLibravatar Brian Ashworth2019-09-04
| | | | | | | | This adds complete support for the barconfig_update ipc event. This also changes the bar command and subcommand handlers to correctly emit the event. This makes it so all bar subcommands other than id and swaybar_command are dynamically changeable at runtime. sway-bar.5 has been updated accordingly
* seatop_default: only focus container on pressLibravatar Brian Ashworth2019-09-04
| | | | | | | | | | | | This matches i3's behavior of only focusing a container when pressed. This allows for `bindsym button1 nop`, `bindsym BTN_LEFT nop`, or `bindcode 272 nop` to be used to disable focusing when clicking on the title (or with additional flags to bind{code,sym} other portions of the container). Without this additional condition, the user would need both `bindsym button1 nop` and `bindsym --release button1 nop` to override both the pressed and released behavior.
* Fix bar_state_update docsLibravatar xPMo2019-09-03
|
* Fix typo for the force/immediate option in xwayland_mode enumLibravatar Ben Brown2019-09-02
|
* man: document how to specify multiple xkb layouts and optionsLibravatar Simon Ser2019-09-02
| | | | This isn't described in xkeyboard-config(7).
* layer-shell: don't give focus to unmapped layer surfacesLibravatar Simon Ser2019-09-01
| | | | | | | | Focused layers are not cleared when destroyed, they are cleared on unmap. Giving focus to an unmapped layer surface is (1) incorrect and (2) triggers a use-after-free. Closes: https://github.com/swaywm/sway/issues/4517
* Ensure that seat->focused_layer is cleared on unmapLibravatar Kenny Levinsen2019-09-01
| | | | | The current seat may have changed between the last focus change and this unmap, so we need to scan through all seats to find our layer.
* seat: set cursor image only if no pointer cap previouslyLibravatar xdavidwu2019-08-31
| | | | | | This make seat_update_capabilities set cursor image only if there was no pointer cap before update. This avoid resetting cursor to left_ptr if an input device is removed.
* seat: avoid unneeded reloading xcursor themeLibravatar xdavidwu2019-08-31
| | | | | Load xcursor theme on configuring pointer or tablet tool only if there was no pointer cap before.
* Fix markup syntax in man pagesLibravatar Martin Michlmayr2019-08-31
|
* 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
* 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-25
| | | | | 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-24
|
* cmd_move: fix move to scratchpad hidden containerLibravatar Brian Ashworth2019-08-23
| | | | | | | | | 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-22
| | | | | | | | | 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
* sway.5: remove mention of floating_scrollLibravatar Brian Ashworth2019-08-22
| | | | | | | 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
* Allow moving a container hidden in scratchpadLibravatar lbonn2019-08-20
| | | | | | | (as i3 allows it) Just update the container's coordinates so that they will be applied at the next show.
* cmd_xwayland: add force for immediate launchLibravatar Brian Ashworth2019-08-20
| | | | | | | This just adds a force option to cmd_xwayland that allows for xwayland to be immediately launched instead of lazily launched. This is useful for slower machines so it can be part of the startup time instead of when the user is actively trying to use it
* input/keyboard: send released only if pressed sentLibravatar Brian Ashworth2019-08-20
| | | | | | | | | | 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.
* Remove xdg-shell v6 supportLibravatar Simon Ser2019-08-20
| | | | | | All major toolkits and apps have gained xdg-shell stable support. Closes: https://github.com/swaywm/sway/issues/3690
* properly check pixman_region32_contains_rectangle returnLibravatar Ilia Bozhinov2019-08-19
| | | | | pixman_region32_contains_rectangle() returns pixman_region_intersection_t not a bool.
* input/seatop_down: add axis handlerLibravatar Brian Ashworth2019-08-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.
* sway{,-bar}.5: add link to pango font descriptionLibravatar Brian Ashworth2019-08-16
| | | | | | 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
* layer-shell: add support for popupsLibravatar Drew DeVault2019-08-14
|
* workspace_split: focus middle if workspace focusedLibravatar Brian Ashworth2019-08-14
| | | | | 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-14
| | | | | | | | 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.
* workspace: do not destroy if any seat is focusingLibravatar Brian Ashworth2019-08-13
| | | | | | | 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-13
| | | | | | | | | | 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
* workspace: prefer identifiers for output priorityLibravatar Brian Ashworth2019-08-13
| | | | | | | | | | Since output names can change in various configurations, including DisplayPort MST, prefer output identifiers for the output priority. Users can still use `workspace <ws> output <names-or-ids>`, but any output that is programmatically added to the list will be added under the output identifier. If the output name exists in the list (from the user workspace output configs), then that will be retained instead of switching to the output identifier for that output.
* Remove redundant checksLibravatar Antonin Décimo2019-08-12
|
* Fix memory leaksLibravatar Antonin Décimo2019-08-12
|
* view_update_size: fix surface_width/height mismatchLibravatar Antonin Décimo2019-08-12
|
* input: check pointer against nullptrLibravatar Antonin Décimo2019-08-12
|
* layer_shell: Guard against negative exclusive zoneLibravatar Sebastian Krzyszkowiak2019-08-12
| | | | This can happen with surfaces that set negative margins.
* 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.