aboutsummaryrefslogtreecommitdiffstats
path: root/sway
Commit message (Collapse)AuthorAge
* cmd_bar: fix bar id issuesLibravatar Brian Ashworth2018-10-13
| | | | | | Allows bar-subcommand to be a valid bar-ids Destroys runtime created bar if trying to use a config only subcommand Allow subcommands (except for id) to be ids
* bar_cmd_status_command: only reload current barLibravatar Brian Ashworth2018-10-13
| | | | | Ideally, this will be replaced with an IPC barconfig_update event in the near future
* Fix bar subcommand handler structs and selectionLibravatar Brian Ashworth2018-10-13
|
* Fix crash when view maps while lockedLibravatar Ryan Dwyer2018-10-13
| | | | | | | | When locked, there is no active workspace so it must find the focus_inactive workspace instead. Additionally, this adds a check for if a view maps while there are no outputs connected and handles it gracefully.
* Fix pixel leaks when using fractional scalingLibravatar Ryan Dwyer2018-10-12
| | | | | | | | | | | | | The basic idea here is to apply rounding after scaling. It's not as simple as this, though, and I've detailed it in the comments for a function. In order to fix some pixel leaks in the title bar, I found it easier to change how we place rectangles to fill the area. Instead of placing two rectangles across the full width above and below the title and having shorter rectangles in the inner area, it's now pieced together in vertical chunks. This method involves drawing two less rectangles per container.
* Merge branch 'master' into masterLibravatar Ryan Dwyer2018-10-12
|\
| * Fix documentation of outputLibravatar chtison2018-10-11
| |
* | fix: cmd_sticky crash sway with empty containerLibravatar meak2018-10-11
|/
* Add libinput send_events config for touchLibravatar Thiago Mendes2018-10-10
|
* Merge pull request #2806 from v-gu/add-libinput-support-for-keyboardLibravatar Drew DeVault2018-10-10
|\ | | | | add libinput config for keyboard
| * add libinput config for keyboardLibravatar Vincent Gu2018-10-09
| | | | | | | | add send_events support
* | Merge branch 'master' into bar-bindsymLibravatar Ian Fan2018-10-10
|\ \
| * \ Merge branch 'master' into mouse-warping-containerLibravatar Ryan Dwyer2018-10-10
| |\ \
| | * | Fix floating click eventsLibravatar Ryan Dwyer2018-10-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Set focus to a floating container when clicking its title bar. * Raise floating when user clicks title bar or decorations (in the seat_begin functions). * In container_at, it only returned a floating container if the user had clicked the surface. This makes it use floating_container_at instead.
| * | | Add mouse_warping containerLibravatar Rouven Czerwinski2018-10-10
| |/ / | | | | | | | | | | | | | | | | | | This option always moves the cursor into the middle of the container if the warp variable is true in seat_set_focus_warp. Fixes #2577
| * | Fix back_and_forth documentationLibravatar Ryan Dwyer2018-10-10
| | |
| * | Fix undesirable height change of floating viewsLibravatar mwenzkowski2018-10-09
| |/ | | | | | | | | | | | | In view_autoconfigure the height of the view is adjusted if the parent container has a tabbed/stacked layout. Previously this height change would also be applied to floating views, although it is not needed for them.
| * Merge pull request #2805 from RyanDwyer/fix-resize-return-valueLibravatar Drew DeVault2018-10-09
| |\ | | | | | | resize: Determine if anything changed using before/after check
| | * resize: Determine if anything changed using before/after checkLibravatar Ryan Dwyer2018-10-09
| | | | | | | | | | | | | | | | | | Returning a boolean from container_resize_tiled and resize_tiled doesn't work in all cases. This patch changes it back to void and does a before/after check to see if the container was resized.
| * | Merge pull request #2803 from RedSoxFan/fix-2802Libravatar Drew DeVault2018-10-09
| |\ \ | | |/ | |/| Only consider tiling views for gaps outer
| | * Only consider tiling views for gaps outerLibravatar Brian Ashworth2018-10-08
| | |
* | | bar-bindsym: address ianyfan's commentsLibravatar Brian Ashworth2018-10-09
| | |
* | | Implement bar bindsymLibravatar Brian Ashworth2018-10-09
|/ /
* / config: remove double free of config->swaynag_commandLibravatar Rouven Czerwinski2018-10-09
|/ | | | Fixes #2796
* Merge pull request #2772 from RyanDwyer/improve-popup-damageLibravatar Drew DeVault2018-10-09
|\ | | | | Only damage popups when popups have damage
| * Handle subsurfaces in view_child_damageLibravatar Ryan Dwyer2018-10-07
| |
| * Use wlr_xdg_popup_get_toplevel_coordsLibravatar Ryan Dwyer2018-10-07
| |
| * Only damage popups when popups have damageLibravatar Ryan Dwyer2018-10-07
| | | | | | | | | | | | | | | | | | | | | | The previous behaviour was to damage the entire view, which would recurse into each popup. This patch makes it damage only the popup's surface, and respect the surface damage given by the client. This adds listeners to the popup's map and unmap events rather than doing the damage in the create and destroy functions. To get the popup's position relative to the view, a new child_impl function get_root_coords has been introduced, which traverses up the parents.
* | Merge branch 'master' into popup-during-fullscreenLibravatar Brian Ashworth2018-10-08
|\ \
| * | commands: when setting urgency, check container is not nullLibravatar Ian Fan2018-10-08
| | |
| * | Allow swaynag to be disabledLibravatar Brian Ashworth2018-10-08
| | |
| * | Merge pull request #2793 from emersion/disable-swaybgLibravatar emersion2018-10-08
| |\ \ | | | | | | | | Allow swaybg to be disabled
| | * | Fix memory leak in status_command handlerLibravatar emersion2018-10-08
| | | |
| | * | Allow swaybg to be disabledLibravatar emersion2018-10-08
| | | | | | | | | | | | | | | | | | | | | | | | Same as #2791 but for swaybg. Fixes #2790
| * | | Check if there is a current container before setting it's opacityLibravatar John Axel Eriksson2018-10-08
| |/ /
* | | Remove duplicate codeLibravatar Ryan Dwyer2018-10-08
| | |
* | | Look for any ancestor when checking for fullscreen exitLibravatar Ryan Dwyer2018-10-08
| | |
* | | Use current state when rendering transient containersLibravatar Ryan Dwyer2018-10-08
| | |
* | | Introduce container_is_transient_forLibravatar Ryan Dwyer2018-10-08
| | |
* | | Implement popup_during_fullscreenLibravatar Ryan Dwyer2018-10-08
|/ / | | | | | | | | | | | | | | | | | | This introduces a new view_impl function: is_transient_for. Similar to container_has_ancestor but works using the surface parents rather than the tree. This patch modifies view_is_visible, container_at and so on to allow transient views to function normally when they're in front of a fullscreen view.
* | Allow status_command to be disabled via IPCLibravatar Ryan Dwyer2018-10-08
| |
* | swaybar: allow null status_commandLibravatar Ryan Dwyer2018-10-08
| | | | | | | | | | | | | | | | | | Sway sets a default status_command which runs date every second. This patch removes this behaviour so the user can have a NULL status bar if desired. I had to swap swaybar's event_loop_poll and wl_display_flush so that it would map the initial surface.
* | Don't apply seat config when validatingLibravatar Ryan Dwyer2018-10-08
| |
* | Remove unneeded variableLibravatar Ryan Dwyer2018-10-08
| |
* | Reload config using idle eventLibravatar Ryan Dwyer2018-10-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch makes it so when you run reload, the actual reloading is deferred to the next time the event loop becomes idle. This avoids several use-after-frees and removes the workarounds we have to avoid them. When you run reload, we validate the config before creating the idle event. This is so the reload command will still return an error if there are validation errors. To allow this, load_main_config has been adjusted so it doesn't apply the config if validating is true rather than applying it unconditionally. This also fixes a memory leak in the reload command where if the config failed to load, the bar_ids list would not be freed.
* | Shim client.background and client.placeholderLibravatar Drew DeVault2018-10-07
|/ | | | | | | These are not supported by sway, but are valid i3 commands and should not cause config errors. Also includes a couple of minor touch-ups.
* ipc: set "type" of floating containers to "floating_con"Libravatar Ian Fan2018-10-06
|
* Move sticky containers when switching workspace via criteriaLibravatar Ryan Dwyer2018-10-06
| | | | | | | | | | | | | | | | | | | | | | * Create a view on workspace 1 * Switch to workspace 2 (on the same output) and create a floating sticky view * Use criteria to focus the view on workspace 1 Previously, we only moved the sticky containers when using workspace_switch, but the above method of focusing doesn't call it. This patch relocates the sticky-moving code into seat_set_focus_warp. A side effect of this patch is that if you have a sticky container focused and then switch workspaces, the sticky container will no longer be focused. It would previously retain focus. In seat_set_focus_warp, new_output_last_ws was only set when changing outputs, but now it's always set. This means new_output_last_ws and last_workspace might point to the same workspace, which means we have to make sure we don't destroy it twice. It now checks to make sure they're different, and to make this more obvious I've moved both calls to workspace_consider_destroy to be next to each other.
* Fix crash when flattening container after movingLibravatar Ryan Dwyer2018-10-05
| | | | | | | | | | container_flatten removes the container from the tree (via container_replace) before destroying it. When destroying, the recent changes to handle_seat_node_destroy incorrectly assumes that the container has a parent. This adds a check for destroying a container which is no longer in the tree. If this is the case, focus does not need to be changed.
* Remove obsolete base64.c fileLibravatar Ian Fan2018-10-04
|