3f02218 | emersion | 20 October 2018, 20:52:56 UTC | Merge pull request #2901 from ianyfan/swaybar swaybar: render with minimum height, nominally text height | 20 October 2018, 20:52:56 UTC |
1844a5b | Ian Fan | 20 October 2018, 20:12:54 UTC | swaybar: render with minimum height, nominally text height | 20 October 2018, 20:21:57 UTC |
6e6476c | Drew DeVault | 20 October 2018, 19:06:38 UTC | Merge pull request #2900 from Hi-Angel/master A script to make inactive windows transparent | 20 October 2018, 19:06:38 UTC |
0d5aaf5 | Konstantin Kharlamov | 20 October 2018, 18:43:54 UTC | 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 | Drew DeVault | 20 October 2018, 14:18:58 UTC | Merge pull request #2896 from RyanDwyer/abort-proprietary Abort if proprietary drivers are in use | 20 October 2018, 14:18:58 UTC |
ebeb759 | Ryan Dwyer | 20 October 2018, 14:01:09 UTC | 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 | Drew DeVault | 20 October 2018, 13:38:25 UTC | 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 | Drew DeVault | 20 October 2018, 13:30:54 UTC | Merge pull request #2888 from RyanDwyer/remove-raise-floating Remove raise_floating directive | 20 October 2018, 13:30:54 UTC |
93ec1af | Ryan Dwyer | 20 October 2018, 13:18:56 UTC | 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 | Drew DeVault | 20 October 2018, 13:17:51 UTC | 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 | Ryan Dwyer | 20 October 2018, 09:43:58 UTC | 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 | Mihai Coman | 20 October 2018, 08:48:49 UTC | 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 | Ryan Dwyer | 20 October 2018, 07:51:32 UTC | 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 | Ryan Dwyer | 20 October 2018, 06:48:43 UTC | 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 | emersion | 20 October 2018, 06:42:56 UTC | Merge pull request #2870 from RyanDwyer/refactor-input-manager Minor refactor of input manager | 20 October 2018, 06:42:56 UTC |
fe6aea1 | emersion | 20 October 2018, 06:37:48 UTC | 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 | emersion | 20 October 2018, 06:35:20 UTC | 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 | Rouven Czerwinski | 19 October 2018, 17:11:21 UTC | 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 | Rouven Czerwinski | 19 October 2018, 06:30:05 UTC | 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 | Ryan Dwyer | 18 October 2018, 11:20:00 UTC | 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 | Ryan Dwyer | 20 October 2018, 02:34:39 UTC | 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 | Drew DeVault | 20 October 2018, 03:06:03 UTC | Merge pull request #2872 from RyanDwyer/cursor-rebase Introduce cursor_rebase | 20 October 2018, 03:06:03 UTC |
3b8dd49 | Drew DeVault | 19 October 2018, 23:18:23 UTC | Merge pull request #2885 from RyanDwyer/fix-tiling-drag-crash Fix crash when ending tiling drag | 19 October 2018, 23:18:23 UTC |
bb6c9f5 | Drew DeVault | 19 October 2018, 23:16:24 UTC | 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 | Ryan Dwyer | 19 October 2018, 22:49:51 UTC | 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 | Connor E | 19 October 2018, 15:38:01 UTC | Change initial background mode before arg parse. | 19 October 2018, 15:38:01 UTC |
0a4735c | emersion | 19 October 2018, 13:18:05 UTC | Merge pull request #2883 from ponkyh/missing-stdlib missing headers for swaybar/input.c | 19 October 2018, 13:18:05 UTC |
79011e6 | ossi.ahosalmi | 19 October 2018, 12:55:30 UTC | missing headers for swaybar/input.c | 19 October 2018, 12:55:30 UTC |
9ea71f2 | Ryan Dwyer | 18 October 2018, 14:04:21 UTC | 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 | Drew DeVault | 19 October 2018, 12:40:56 UTC | 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 | Ryan Dwyer | 19 October 2018, 12:28:02 UTC | 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 | Drew DeVault | 19 October 2018, 12:00:03 UTC | 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 | Drew DeVault | 19 October 2018, 00:49:13 UTC | Merge pull request #2877 from RyanDwyer/warp-on-workspace-switch Consider cursor warp when switching workspaces | 19 October 2018, 00:49:13 UTC |
a2fdac2 | Ryan Dwyer | 18 October 2018, 21:57:50 UTC | 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 | Brian Ashworth | 18 October 2018, 17:13:40 UTC | cmd_bind{sym,code}: Implement per-device bindings bindsym --input-device=<identifier> ... bindcode --input-device=<identifier> ... | 18 October 2018, 17:42:01 UTC |
30dbb8e | Brian Ashworth | 18 October 2018, 17:37:35 UTC | Merge pull request #2874 from ianyfan/swaybar swaybar: separate input code to new file | 18 October 2018, 17:37:35 UTC |
499150a | Ian Fan | 17 October 2018, 19:21:27 UTC | swaybar: separate input code to new file | 18 October 2018, 13:19:00 UTC |
d88b7a6 | Drew DeVault | 18 October 2018, 13:18:41 UTC | Merge pull request #2871 from RyanDwyer/untangle-cursor-warp Remove cursor warping from seat_set_focus | 18 October 2018, 13:18:41 UTC |
24a90e5 | Ryan Dwyer | 18 October 2018, 13:08:45 UTC | 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 | Drew DeVault | 17 October 2018, 20:19:01 UTC | Merge pull request #2868 from emersion/xcursor-env Export XCURSOR_SIZE and XCURSOR_THEME | 17 October 2018, 20:19:01 UTC |
fd9198a | emersion | 17 October 2018, 19:10:30 UTC | 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 | Drew DeVault | 17 October 2018, 14:16:12 UTC | 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 | Drew DeVault | 17 October 2018, 14:14:35 UTC | Merge pull request #2864 from sghctoma/freebsd-fixes FreeBSD fixes | 17 October 2018, 14:14:35 UTC |
e46c3ff | Drew DeVault | 17 October 2018, 14:13:05 UTC | 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 | Drew DeVault | 17 October 2018, 13:57:13 UTC | Merge pull request #2820 from Emantor/fix-mouse-warping-container Fix mouse warping container | 17 October 2018, 13:57:13 UTC |
8d56269 | Drew DeVault | 17 October 2018, 13:55:49 UTC | Merge pull request #2862 from SpeedJack/fix-stringop-overflow Fix overflow in strcpy | 17 October 2018, 13:55:49 UTC |
af2cfa5 | sghctoma | 17 October 2018, 13:06:55 UTC | 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 | Niccolò Scatena | 17 October 2018, 11:00:12 UTC | Fix stringop-overflow warnings | 17 October 2018, 11:00:12 UTC |
17014c3 | Ryan Dwyer | 17 October 2018, 09:55:00 UTC | 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 | sghctoma | 17 October 2018, 09:09:58 UTC | 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 | Ryan Dwyer | 17 October 2018, 06:50:56 UTC | 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 | Brian Ashworth | 17 October 2018, 01:39:37 UTC | Merge pull request #2843 from c-edw/feature/2842_TruncateMessage swaynag: Truncate message to 2048 chars. | 17 October 2018, 01:39:37 UTC |
3a5a8aa | Brian Ashworth | 17 October 2018, 01:31:29 UTC | Merge branch 'master' into feature/2842_TruncateMessage | 17 October 2018, 01:31:29 UTC |
fa2d2c8 | Drew DeVault | 16 October 2018, 21:50:42 UTC | 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 | Connor E | 16 October 2018, 18:05:41 UTC | 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 | Niccolò Scatena | 16 October 2018, 17:44:45 UTC | 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 | Niccolò Scatena | 16 October 2018, 17:35:06 UTC | 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 | Drew DeVault | 16 October 2018, 16:18:01 UTC | 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 | Rouven Czerwinski | 15 October 2018, 14:21:38 UTC | 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 | Rouven Czerwinski | 15 October 2018, 14:20:18 UTC | seat: use new warping functions for cursor warping during focus warp | 16 October 2018, 13:47:02 UTC |
0969bf7 | Rouven Czerwinski | 15 October 2018, 14:18:46 UTC | 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 | Rouven Czerwinski | 13 October 2018, 19:01:02 UTC | 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 | Ryan Dwyer | 16 October 2018, 13:42:53 UTC | Fix crash when using workspace back_and_forth with no previous | 16 October 2018, 13:42:53 UTC |
113751e | Ian Fan | 16 October 2018, 09:59:09 UTC | 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 | Ian Fan | 16 October 2018, 09:50:56 UTC | Merge branch 'master' into set-set-raw-focus | 16 October 2018, 09:50:56 UTC |
05284b6 | Ryan Dwyer | 15 October 2018, 22:17:24 UTC | 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 | Drew DeVault | 15 October 2018, 21:01:53 UTC | 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 | Cole Mickens | 15 October 2018, 20:36:56 UTC | common/loop.c: add _POSIX_C_SOURCE for clock_gettime and CLOCK_MONOTONIC | 15 October 2018, 20:42:24 UTC |
4e4b922 | Drew DeVault | 15 October 2018, 19:30:53 UTC | Merge pull request #2839 from RyanDwyer/swaylock-version Fix swaylock version string | 15 October 2018, 19:30:53 UTC |
e644632 | Ryan Dwyer | 15 October 2018, 14:08:00 UTC | 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 | Drew DeVault | 15 October 2018, 13:37:17 UTC | 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 | Drew DeVault | 15 October 2018, 13:35:50 UTC | Merge pull request #2835 from RyanDwyer/swap-crash Fix crash in swap command | 15 October 2018, 13:35:50 UTC |
32ba815 | Ryan Dwyer | 15 October 2018, 11:57:59 UTC | Sway clients: Exit gracefully when compositor is unavailable | 15 October 2018, 11:57:59 UTC |
26278b6 | Ryan Dwyer | 15 October 2018, 11:06:24 UTC | 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 | Ryan Dwyer | 15 October 2018, 09:40:40 UTC | 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 | Drew DeVault | 14 October 2018, 15:04:55 UTC | Merge pull request #2831 from swaywm/move-output-docs Establish sway-output(5) | 14 October 2018, 15:04:55 UTC |
b69060f | Drew DeVault | 14 October 2018, 14:48:51 UTC | Establish sway-output(5) | 14 October 2018, 14:52:57 UTC |
53d90dd | Drew DeVault | 14 October 2018, 14:34:22 UTC | Merge pull request #2826 from RyanDwyer/common-eventloop Implement common event loop for swaybar and swaylock | 14 October 2018, 14:34:22 UTC |
135f0fc | Drew DeVault | 14 October 2018, 14:33:38 UTC | Update README.MD (and README.*.md) | 14 October 2018, 14:33:38 UTC |
c6f153d | Ryan Dwyer | 14 October 2018, 14:23:53 UTC | Event loop: Fix memmove and remove extraneous declaration | 14 October 2018, 14:26:27 UTC |
893f61d | Ryan Dwyer | 14 October 2018, 13:59:51 UTC | Event loop: Free fds and fix race condition | 14 October 2018, 14:26:27 UTC |
6921fdc | Ryan Dwyer | 14 October 2018, 02:28:38 UTC | 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 | Ryan Dwyer | 13 October 2018, 07:06:33 UTC | swaylock: Don't wait too long for surface damage before verifying | 14 October 2018, 14:26:27 UTC |
fa11b7f | Ryan Dwyer | 13 October 2018, 06:56:35 UTC | swaylock: clear password after 10 seconds | 14 October 2018, 14:26:27 UTC |
c242712 | Ryan Dwyer | 13 October 2018, 06:52:13 UTC | swaylock: Remove indicator after 3 seconds | 14 October 2018, 14:26:27 UTC |
9c833c6 | Ryan Dwyer | 13 October 2018, 06:14:35 UTC | swaylock: Use common event loop | 14 October 2018, 14:26:27 UTC |
4056c09 | Ryan Dwyer | 13 October 2018, 06:04:37 UTC | 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 | Drew DeVault | 14 October 2018, 14:23:40 UTC | Document `border csd` | 14 October 2018, 14:23:40 UTC |
4a05fbf | Drew DeVault | 14 October 2018, 13:13:50 UTC | Merge pull request #2751 from ianyfan/swaybar Bar mode/hidden_state events | 14 October 2018, 13:13:50 UTC |
85dd36e | Ian Fan | 13 October 2018, 20:44:08 UTC | swaybar: add documentation for hide/hidden_state subcommands | 14 October 2018, 12:33:12 UTC |
4dba7c0 | Ian Fan | 13 October 2018, 10:56:56 UTC | 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 | Ian Fan | 12 October 2018, 19:59:45 UTC | swaybar: send signal to status when hiding or showing bar | 14 October 2018, 12:33:12 UTC |
f6f72cb | Ian Fan | 12 October 2018, 20:05:43 UTC | swaybar: show hidden bar on urgency | 14 October 2018, 12:33:12 UTC |
2f1fd80 | Ian Fan | 12 October 2018, 20:14:52 UTC | 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 | Ian Fan | 12 October 2018, 19:32:48 UTC | 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 | Ian Fan | 12 October 2018, 19:28:04 UTC | 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 | Ian Fan | 12 October 2018, 19:23:01 UTC | 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 | Ian Fan | 12 October 2018, 20:17:32 UTC | swaybar: only send initial workspace request if workspace buttons are enabled | 14 October 2018, 12:33:12 UTC |
19f0bf3 | Ian Fan | 12 October 2018, 19:18:04 UTC | swaybar: add free_hotspots helper function | 14 October 2018, 12:33:12 UTC |
a67fa8a | Ian Fan | 30 September 2018, 14:09:55 UTC | 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 |