https://github.com/swaywm/sway

sort by:
Revision Author Date Message Commit Date
3f02218 Merge pull request #2901 from ianyfan/swaybar swaybar: render with minimum height, nominally text height 20 October 2018, 20:52:56 UTC
1844a5b swaybar: render with minimum height, nominally text height 20 October 2018, 20:21:57 UTC
6e6476c Merge pull request #2900 from Hi-Angel/master A script to make inactive windows transparent 20 October 2018, 19:06:38 UTC
0d5aaf5 A script to make inactive windows transparent Sway has ability to apply transparency to arbitrary windows. This script wires up this functional to one of popular use-cases from i3+<compositor_name>. Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru> 20 October 2018, 18:58:00 UTC
a41b77e Merge pull request #2896 from RyanDwyer/abort-proprietary Abort if proprietary drivers are in use 20 October 2018, 14:18:58 UTC
ebeb759 Abort if proprietary drivers are in use The idea here is we don't want users to be blissfully unaware that they are running unsupported drivers. So we abort on startup, and force the user to add a specific argument to bypass the check. 20 October 2018, 14:01:09 UTC
64534d2 Merge pull request #2895 from RyanDwyer/fix-popup-damage Fix popup damage issues when toplevel and/or popup uses geometry 20 October 2018, 13:38:25 UTC
551e05b Merge pull request #2888 from RyanDwyer/remove-raise-floating Remove raise_floating directive 20 October 2018, 13:30:54 UTC
93ec1af Fix popup damage issues when toplevel and/or popup uses geometry The wlr_xdg_popup_get_toplevel_coords function has the following quirks: * It does not do anything with the coordinates of the passed popup. Instead, we are required to add them ourselves, which we do by passing them to the function as the surface local values. * It adds the geometry (shadows etc) of the toplevel itself, so the coordinates are surface local rather than content local. For this reason, we have to negate the toplevel's geometry (child->view->geometry). * I may be wrong, but the popup positions appear to be stored in surface local coordinates rather than content local coordinates. The geometry (shadows etc) of the popup itself must be negated (surface->geometry). 20 October 2018, 13:18:56 UTC
c75098e Merge pull request #2887 from RyanDwyer/bar-overlay Put swaybar in overlay layer when using mode hide 20 October 2018, 13:17:51 UTC
cafb1ff Merge pull request #2890 from mihaicmn/create-default-seat Fix crash when defaut seat is not created 20 October 2018, 09:43:58 UTC
3daf963 Fix crash when defaut seat is not created Function input_manager_get_default_seat should always return a seat. 20 October 2018, 08:48:49 UTC
b9b1b0e Remove raise_floating directive The directive controlled whether floating views should raise to the top when the cursor is moved over it while using focus_follows_mouse. The default was enabled, which is undesirable. For example, if you have two floating views where one completely covers the other, the smaller one would be inaccessible because moving the mouse over the bigger one would raise it above the smaller one. There is no known use case for having raise_floating enabled, so this patch removes the directive and implements the raise_floating disabled behaviour instead. 20 October 2018, 07:51:32 UTC
a4ce522 Put swaybar in overlay layer when using mode hide This allows the bar to render over fullscreen views. 20 October 2018, 06:48:43 UTC
75ea19c Merge pull request #2870 from RyanDwyer/refactor-input-manager Minor refactor of input manager 20 October 2018, 06:42:56 UTC
fe6aea1 Merge pull request #2886 from RyanDwyer/fix-headless-unmap-crash Fix crash when view unmaps while no outputs connected 20 October 2018, 06:37:48 UTC
4bde0eb Merge pull request #2879 from Emantor/fix/swaybar_position swaybar: disallow left and right position and print error on default 20 October 2018, 06:35:20 UTC
17fb3b6 commands/bar: remove left and right from allowed positions "left" and "right" are not allowed positions for swaybar, remove them. 20 October 2018, 06:21:44 UTC
f528253 swaybar: disallow left and right position and print error on default The positions "left" and "right" are not allowed by the man page, remove them from the allowed positions. Also print an error to stderr if we default to the bottom position. Fixes #2878 20 October 2018, 06:21:44 UTC
c006717 Minor refactor of input manager The input manager is a singleton object. Passing the sway_input_manager argument to each of its functions is unnecessary, while removing the argument makes it obvious to the caller that it's a singleton. This patch removes the argument and makes the input manager use server.input instead. On a similar note: * sway_input_manager.server is removed in favour of using the server global. * seat.input is removed because it can get it from server.input. Due to a circular dependency, creating seat0 is now done directly in server_init rather than in input_manager_create. This is because creating seats must be done after server.input is set. Lastly, it now stores the default seat name using a constant and removes a second reference to seat0 (in input_manager_get_default_seat). 20 October 2018, 03:11:43 UTC
ed771a6 Fix crash when view unmaps while no outputs connected When a view unmaps, we call workspace_consider_destroy. This function assumed the workspace would always have an output, but this is not the case when hotplugged down to zero. The function now handles this and allows itself to be destroyed when there is no output. This means that workspace_begin_destroy must remove the workspace from the root->saved_workspaces list to avoid an eventual dangling pointer, so it does that now. Lastly, when an output is plugged in again and it has to create a new initial workspace for it, we must emit the workspace::init IPC event otherwise swaybar shows no workspaces at all. I guess when you start sway, swaybar is started after the workspace has been created which is why this hasn't been needed earlier. 20 October 2018, 03:07:33 UTC
5b8257b Merge pull request #2872 from RyanDwyer/cursor-rebase Introduce cursor_rebase 20 October 2018, 03:06:03 UTC
3b8dd49 Merge pull request #2885 from RyanDwyer/fix-tiling-drag-crash Fix crash when ending tiling drag 19 October 2018, 23:18:23 UTC
bb6c9f5 Merge pull request #2884 from c-edw/feature/2867_FixScalingParameter Prevent overriding background mode after it's been set. 19 October 2018, 23:16:24 UTC
9b82893 Fix crash when ending tiling drag If the container being dragged has a parent that needs to be reaped, it must be reaped after we've reinserted the dragging container into the tree. During reaping, handle_seat_node_destroy tries to refocus the dragging container which isn't possible while it's detached. 19 October 2018, 22:57:09 UTC
d855837 Change initial background mode before arg parse. 19 October 2018, 15:38:01 UTC
0a4735c Merge pull request #2883 from ponkyh/missing-stdlib missing headers for swaybar/input.c 19 October 2018, 13:18:05 UTC
79011e6 missing headers for swaybar/input.c 19 October 2018, 12:55:30 UTC
9ea71f2 Introduce cursor_rebase This function "rebases" the cursor on top of whatever is underneath it, without triggering any focus changes. 19 October 2018, 12:47:54 UTC
28f3b8c Merge pull request #2882 from RyanDwyer/fix-mouse-warp-logic Fix logic used for mouse_warping output 19 October 2018, 12:40:56 UTC
4d743b6 Fix logic used for mouse_warping output Turns out we don't need to store the previous focus, and it should be based on which output the cursor was in. 19 October 2018, 12:28:02 UTC
96e3686 Merge pull request #2875 from RedSoxFan/input-device-bindings cmd_bind{sym,code}: Implement per-device bindings 19 October 2018, 12:00:03 UTC
19adc3f Merge pull request #2877 from RyanDwyer/warp-on-workspace-switch Consider cursor warp when switching workspaces 19 October 2018, 00:49:13 UTC
a2fdac2 Consider cursor warp when switching workspaces Fixes a regression introduced in 24a90e5d86441fc345356eb3767e5a6880dcedbd. consider_warp_to_focus has been renamed to seat_consider_warp_to_focus, moved to seat.c and made public. It is now called when switching workspaces via `workspace <ws>`. 18 October 2018, 22:00:13 UTC
2e637b7 cmd_bind{sym,code}: Implement per-device bindings bindsym --input-device=<identifier> ... bindcode --input-device=<identifier> ... 18 October 2018, 17:42:01 UTC
30dbb8e Merge pull request #2874 from ianyfan/swaybar swaybar: separate input code to new file 18 October 2018, 17:37:35 UTC
499150a swaybar: separate input code to new file 18 October 2018, 13:19:00 UTC
d88b7a6 Merge pull request #2871 from RyanDwyer/untangle-cursor-warp Remove cursor warping from seat_set_focus 18 October 2018, 13:18:41 UTC
24a90e5 Remove cursor warping from seat_set_focus Because cursor warping was the default behaviour in seat_set_focus, there may be cases where we may have been warping the cursor unintentionally. This patch removes cursor warping from seat_set_focus and only does it in the focus command. This is managed by a static function in focus.c. To know whether to warp or not, we need to know which node had focus previously. To keep track of this easily, seat->prev_focus has been introduced and is set to the previous in seat_set_focus. 18 October 2018, 13:08:45 UTC
103b7bc Merge pull request #2868 from emersion/xcursor-env Export XCURSOR_SIZE and XCURSOR_THEME 17 October 2018, 20:19:01 UTC
fd9198a Export XCURSOR_SIZE and XCURSOR_THEME These can be used by toolkits (currently Qt, libxcursor, glfw) to choose a default cursor theme and size. This backports this rootston commit: https://github.com/swaywm/wlroots/pull/1294/commits/3a181ab430997aaf03a75cbe3b79b0fc56ec96c3 17 October 2018, 19:10:30 UTC
10d0747 Merge pull request #2858 from RyanDwyer/fix-move-to-floating-ws Fix moving tiled containers to workspaces which only have floating views 17 October 2018, 14:16:12 UTC
46dafbf Merge pull request #2864 from sghctoma/freebsd-fixes FreeBSD fixes 17 October 2018, 14:14:35 UTC
e46c3ff Merge pull request #2861 from RyanDwyer/fix-empty-workspace-crashes Fix crashes when running certain commands on an empty workspace 17 October 2018, 14:13:05 UTC
765c80e Merge pull request #2820 from Emantor/fix-mouse-warping-container Fix mouse warping container 17 October 2018, 13:57:13 UTC
8d56269 Merge pull request #2862 from SpeedJack/fix-stringop-overflow Fix overflow in strcpy 17 October 2018, 13:55:49 UTC
af2cfa5 Set sysconfdir to /etc only if prefix is /usr PR #2855 basically hardcodes the config file path to /etc, which is a problem on e.g. FreeBSD, where the expected path for config files of non-base software is '/usr/local/etc'. Meson sets sysconfdir to '/etc' explicitly only when prefix is '/usr', so it is still possible to use '/usr/local' as prefix, and install the config files under '/usr/local/etc'. This commit allows to do that by setting sysconfdir based on the value of prefix. 17 October 2018, 13:28:18 UTC
8c86fff Fix stringop-overflow warnings 17 October 2018, 11:00:12 UTC
17014c3 Fix crashes when running certain commands on an empty workspace This fixes crashes when running the border, mark, unmark and title_format commands on an empty workspace. 17 October 2018, 09:55:00 UTC
2694fd7 Increase _POSIX_C_SOURCE to 200112L CLOCK_MONOTONIC appeared in IEEE Std. 1003.1-200x, it was not part of POSIX.1b (the 1993 version), and FreeBSD treats it accordingly. 17 October 2018, 09:09:58 UTC
799f285 Fix moving tiled containers to workspaces which only have floating views * Make a workspace which only contains floating views * Switch to another workspace and create a tiled view * Move the tiled view to the workspace with `move container to workspace N` The container would be added as a sibling to the floating view, which makes the container floating while having the geometry of a tiled container. This changes it so it only looks for tiled containers in the workspace with a fallback to the workspace itself. 17 October 2018, 06:57:32 UTC
434cbaa Merge pull request #2843 from c-edw/feature/2842_TruncateMessage swaynag: Truncate message to 2048 chars. 17 October 2018, 01:39:37 UTC
3a5a8aa Merge branch 'master' into feature/2842_TruncateMessage 17 October 2018, 01:31:29 UTC
fa2d2c8 Merge pull request #2855 from SpeedJack/sysconfdir-fhs-compliant Make SYSCONFDIR FHS compliant when "prefix" is set 16 October 2018, 21:50:42 UTC
cfc533a Truncate message, append buffer overflow message if too long. Increase buffer size, remove macros. Make variables lowercase. Some more feedback. 16 October 2018, 19:20:45 UTC
027928b Set SYSCONFDIR to /etc even when "prefix" is set SYSCONFDIR should be "/etc" even when prefix="/usr" to be FHS compliant. This is the default in meson from v0.44. 16 October 2018, 17:44:45 UTC
615d4bf Revert "Fix SYSCONFDIR to include "prefix"" This reverts commit 6942f5b6845b2cc572ec378365771a34caf50ba1. SYSCONFDIR should be "/etc" even when prefix="/usr" to be FHS compliant. This is the default in meson from v0.44. 16 October 2018, 17:35:06 UTC
18a2646 Merge pull request #2852 from RyanDwyer/back-and-forth-crash Fix crash when using workspace back_and_forth with no previous 16 October 2018, 16:18:01 UTC
1f0aeae view: rewarp cursor during view_unmap If the cursor is warped during the destruction of the workspace, we end up in the wrong position. Warp the cursor after arrange_workspace() so we end up in the correct position. 16 October 2018, 13:47:02 UTC
d69cf4c seat: use new warping functions for cursor warping during focus warp 16 October 2018, 13:47:02 UTC
0969bf7 cursor: functions to warp cursor to container and workspace The new functions allow a cursor to be warped without changing the focus. This is a preparation commit to handle cursor warping not only in seat_set_focus_warp. 16 October 2018, 13:47:02 UTC
892446a view: move arrange_workspace into view_map For mouse_warping cursor to correctly work on newly spawned containers, the workspace needs to be arranged before the cursor is warped. The shell functions each implement their own fullscreen and arrange checks, move them into the view_map function and pass their states via boolean arguments. Fixes #2819 16 October 2018, 13:47:02 UTC
d0974d5 Fix crash when using workspace back_and_forth with no previous 16 October 2018, 13:42:53 UTC
113751e Merge pull request #2836 from RyanDwyer/set-set-raw-focus Introduce seat_set_raw_focus and remove notify argument from seat_set_focus_warp 16 October 2018, 09:59:09 UTC
ac20690 Merge branch 'master' into set-set-raw-focus 16 October 2018, 09:50:56 UTC
05284b6 Prevent duplicate workspace::focus events Previously we would compare the last focus's workspace with the new focus's workspace to determine if we need to emit an IPC workspace::focus event. This doesn't work when moving the focused container to a new workspace. This adds a workspace property to the seat which stores the last emitted workspace::focus workspace. Using this method, after moving the container, refocusing it will trigger exactly one workspace::focus event: from the old workspace to the new workspace. 15 October 2018, 22:17:24 UTC
cd02d60 Merge pull request #2845 from colemickens/posix_clock common/loop.c: add _POSIX_C_SOURCE for clock_gettime and CLOCK_MONOTONIC 15 October 2018, 21:01:53 UTC
a9a9df7 common/loop.c: add _POSIX_C_SOURCE for clock_gettime and CLOCK_MONOTONIC 15 October 2018, 20:42:24 UTC
4e4b922 Merge pull request #2839 from RyanDwyer/swaylock-version Fix swaylock version string 15 October 2018, 19:30:53 UTC
e644632 Fix swaylock version string The referenced constants were not defined so it always printed "version unknown". Also it would exit with code 1. It now exits with code 0. 15 October 2018, 14:09:16 UTC
f6ad490 Merge pull request #2838 from RyanDwyer/compositor-unavailable-crash Sway clients: Exit gracefully when compositor is unavailable 15 October 2018, 13:37:17 UTC
97b9452 Merge pull request #2835 from RyanDwyer/swap-crash Fix crash in swap command 15 October 2018, 13:35:50 UTC
32ba815 Sway clients: Exit gracefully when compositor is unavailable 15 October 2018, 11:57:59 UTC
26278b6 Introduce seat_set_raw_focus and remove notify argument from seat_set_focus_warp This introduces seat_set_raw_focus: a function that manipulates the focus stack without doing any other behaviour whatsoever. There are a few places where this is useful, such as where we set focus_inactive followed by another call to set the real focus again. With this change, the notify argument to seat_set_focus_warp is also removed as these cases now use the raw function instead. A bonus of this is we are no longer emitting window::focus IPC events when setting focus_inactive, nor are we sending focus/unfocus events to the surface. This also fixes the following: * When running `move workspace to output <name>` and moving the last workspace from the source output, the workspace::focus IPC event is no longer emitted for the newly created workspace. * When splitting the currently focused container, unfocus/focus events will not be sent to the surface when giving focus_inactive to the newly created parent, and window::focus events will not be emitted. 15 October 2018, 11:06:24 UTC
fe803b8 Fix crash in swap command When swapping containers that are in the root of the workspace, parent will be NULL. 15 October 2018, 09:40:40 UTC
56c388b Merge pull request #2831 from swaywm/move-output-docs Establish sway-output(5) 14 October 2018, 15:04:55 UTC
b69060f Establish sway-output(5) 14 October 2018, 14:52:57 UTC
53d90dd Merge pull request #2826 from RyanDwyer/common-eventloop Implement common event loop for swaybar and swaylock 14 October 2018, 14:34:22 UTC
135f0fc Update README.MD (and README.*.md) 14 October 2018, 14:33:38 UTC
c6f153d Event loop: Fix memmove and remove extraneous declaration 14 October 2018, 14:26:27 UTC
893f61d Event loop: Free fds and fix race condition 14 October 2018, 14:26:27 UTC
6921fdc Remove timerfd from loop implementation timerfd doesn't work on the BSDs, so this replaces it with a timespec for the expiry and uses a poll timeout to check the timers when needed. 14 October 2018, 14:26:27 UTC
f98f351 swaylock: Don't wait too long for surface damage before verifying 14 October 2018, 14:26:27 UTC
fa11b7f swaylock: clear password after 10 seconds 14 October 2018, 14:26:27 UTC
c242712 swaylock: Remove indicator after 3 seconds 14 October 2018, 14:26:27 UTC
9c833c6 swaylock: Use common event loop 14 October 2018, 14:26:27 UTC
4056c09 Move swaybar's event loop to common directory and refactor * The loop functions are now prefixed with `loop_`. * It is now easy to add timers to the loop. * Timers are implemented using pollfd and timerfd, rather than manually checking them when any other event happens to arrive. 14 October 2018, 14:26:27 UTC
7f2e6d8 Document `border csd` 14 October 2018, 14:23:40 UTC
4a05fbf Merge pull request #2751 from ianyfan/swaybar Bar mode/hidden_state events 14 October 2018, 13:13:50 UTC
85dd36e swaybar: add documentation for hide/hidden_state subcommands 14 October 2018, 12:33:12 UTC
4dba7c0 swaybar: when hiding bar, save old height to be restored upon reshow Previously, when the bar was hidden, the height would be set to 0. This meant that if the bar was empty upon reshow, it would not render since the height was still 0, which made it seem there was a problem. Now, the height is not reset, but the width is, to indicate upon reshow that the layer surface needed reconfiguring. 14 October 2018, 12:33:12 UTC
a29ee77 swaybar: send signal to status when hiding or showing bar 14 October 2018, 12:33:12 UTC
f6f72cb swaybar: show hidden bar on urgency 14 October 2018, 12:33:12 UTC
2f1fd80 swaybar: show hidden bar on key event Since wayland does not currently allow swaybar to create global keybinds, this is handled within sway and sent to the bar using a custom event, so as not to pollute existing events, called bar_state_update. 14 October 2018, 12:33:12 UTC
bcc61e5 swaybar: handle mode/hidden_state changes As well as adding the hidden_state property to the bar config struct, this commit handles barconfig_update events when the mode or hidden_state changes, and uses a new function determine_bar_visibility to hide or show the bar as required, using, respectively, destroy_layer_surface, which is also newly added, and add_layer_surface, which has been changed to allow dynamically adding the surface. 14 October 2018, 12:33:12 UTC
55ca16f swaybar: streamline ipc handling The received json is handled outside of the case statement, which will allow better extensibility. This commit also introduces the variable bar_is_dirty, the return value signifying whether the bar requires rendering. 14 October 2018, 12:33:12 UTC
fed11d1 swaybar: move mode & mode_pango_markup to bar struct This distinguishes the binding mode from the distinct config mode, as well as removing mode_pango_markup from the config struct where it should not be present. 14 October 2018, 12:33:12 UTC
a388ffa swaybar: only send initial workspace request if workspace buttons are enabled 14 October 2018, 12:33:12 UTC
19f0bf3 swaybar: add free_hotspots helper function 14 October 2018, 12:33:12 UTC
a67fa8a swaybar: only subscribe to required events This adds barconfig_update to the list of subscribed events, as well as checking when the other events need to be subscribed to. 14 October 2018, 12:33:12 UTC
back to top