aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
...
* | | | Merge pull request #2812 from RyanDwyer/fix-version-messagesLibravatar emersion2018-10-10
|\ \ \ \ | |/ / / |/| | | Fix program name in version strings
| * | | Fix program name in version stringsLibravatar Ryan Dwyer2018-10-10
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When running swaymsg -v, the version returned is actually the version of swaymsg itself, yet the message displayed was "sway version <version>". This can create confusion if users update sway and swaymsg but don't restart sway, then use swaymsg to check the version. This patch changes the wording to be "swaymsg version <version>" instead, and likewise for swaybar. To get the version of a running sway instance, users should run swaymsg -t get_version.
* | | Merge pull request #2810 from RyanDwyer/fix-docs-backandforthLibravatar Drew DeVault2018-10-10
|\ \ \ | | | | | | | | Fix back_and_forth documentation
| * | | Fix back_and_forth documentationLibravatar Ryan Dwyer2018-10-10
|/ / /
* | | Merge pull request #2809 from mwenzkowski/fix-view_autoconfigureLibravatar Drew DeVault2018-10-10
|\ \ \ | |_|/ |/| | Fix undesirable height change of floating views
| * | 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
| |/ |/|
* | Merge pull request #2804 from Emantor/swaynag-double-freeLibravatar Drew DeVault2018-10-09
|\ \ | |/ |/| config: remove double free of config->swaynag_command
| * 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 pull request #2782 from RyanDwyer/popup-during-fullscreenLibravatar Brian Ashworth2018-10-08
|\ \ | | | | | | Implement popup_during_fullscreen
| * \ Merge branch 'master' into popup-during-fullscreenLibravatar Brian Ashworth2018-10-08
| |\ \ | |/ / |/| |
* | | Merge pull request #2799 from ianyfan/commandsLibravatar emersion2018-10-08
|\ \ \ | | | | | | | | commands: when setting urgency, check container is not null
| * | | commands: when setting urgency, check container is not nullLibravatar Ian Fan2018-10-08
|/ / /
* | | Merge pull request #2795 from RedSoxFan/swaynag-disableLibravatar emersion2018-10-08
|\ \ \ | | | | | | | | Allow swaynag to be disabled
| * | | 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
* | | | Merge pull request #2794 from johnae/fix-opacity-crashing-bugLibravatar emersion2018-10-08
|\ \ \ \ | |/ / / |/| | | Check if there is a current container before setting its opacity
| * | | 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.
* | Merge pull request #2791 from RyanDwyer/status-command-optionalLibravatar Drew DeVault2018-10-08
|\ \ | | | | | | swaybar: allow null status_command
| * | Allow status_command to be disabled via IPCLibravatar Ryan Dwyer2018-10-08
| | |
| * | Add example status_command to default configLibravatar 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.
* | Merge pull request #2789 from RyanDwyer/reload-idleLibravatar Ian Fan2018-10-08
|\ \ | | | | | | Reload config using idle event
| * | 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.
* | Merge pull request #2786 from swaywm/no-op-client-commandsLibravatar Drew DeVault2018-10-07
|\ \ | | | | | | Shim client.background and client.placeholder
| * | 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.
* | swaynag: s/Toggle Details/Toggle details/Libravatar Drew DeVault2018-10-07
| |
* | Merge pull request #2783 from martinetd/swaynag_uafLibravatar emersion2018-10-07
|\ \ | |/ |/| swaynag: fix use-after-free in wl_display_dispatch
| * swaynag: fix use-after-free in wl_display_dispatchLibravatar Dominique Martinet2018-10-07
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When destroying swaynag from within wl_display_dispatch, we cannot disconnect the display as that will free the queue's event_list. Free it after running the loop instead. Fixes this use-after-free: ==7312==ERROR: AddressSanitizer: heap-use-after-free on address 0x612000000110 at pc 0x000000412a9f bp 0x7ffd4e811760 sp 0x7ffd4e811750 READ of size 8 at 0x612000000110 thread T0 #0 0x412a9e in wl_list_empty ../common/list.c:206 #1 0x7f5b58f0d42f in dispatch_queue src/wayland-client.c:1572 #2 0x7f5b58f0d42f in wl_display_dispatch_queue_pending src/wayland-client.c:1815 #3 0x40f465 in swaynag_run ../swaynag/swaynag.c:390 #4 0x407576 in main ../swaynag/main.c:123 #5 0x7f5b58bb9412 in __libc_start_main ../csu/libc-start.c:308 #6 0x404a3d in _start (/opt/wayland/bin/swaynag+0x404a3d) 0x612000000110 is located 208 bytes inside of 320-byte region [0x612000000040,0x612000000180) freed by thread T0 here: #0 0x7f5b594ab480 in free (/lib64/libasan.so.5+0xef480) #1 0x40faff in swaynag_destroy ../swaynag/swaynag.c:454 #2 0x40cbb4 in layer_surface_closed ../swaynag/swaynag.c:82 #3 0x7f5b583e1acd in ffi_call_unix64 (/lib64/libffi.so.6+0x6acd) previously allocated by thread T0 here: #0 0x7f5b594aba50 in __interceptor_calloc (/lib64/libasan.so.5+0xefa50) #1 0x7f5b58f0c902 in wl_display_connect_to_fd src/wayland-private.h:236 (you need a wayland compiled with asan, my wl_list hack, or running with valgrind to see this trace)
* Merge pull request #2778 from emersion/swaybar-seat-pointerLibravatar Drew DeVault2018-10-06
|\ | | | | swaybar: fix binding to wl_pointer multiple times
| * swaybar: fix binding to wl_pointer multiple timesLibravatar emersion2018-10-06
| |
* | Merge pull request #2779 from ianyfan/ipcLibravatar emersion2018-10-06
|\ \ | |/ |/| ipc: set "type" of floating containers to "floating_con"