mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge branch 'master' of git://github.com/SirCmpwn/sway into commands-refactor
This commit is contained in:
		
						commit
						79ffea328c
					
				
					 52 changed files with 163 additions and 174 deletions
				
			
		| 
						 | 
					@ -28,6 +28,7 @@ Sway is not supported by many distributions yet. Here's a list of packages
 | 
				
			||||||
available for you to install:
 | 
					available for you to install:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* [Arch Linux](https://github.com/SirCmpwn/sway/wiki/Install-from-packages#arch)
 | 
					* [Arch Linux](https://github.com/SirCmpwn/sway/wiki/Install-from-packages#arch)
 | 
				
			||||||
 | 
					* [Fedora](https://github.com/SirCmpwn/sway/wiki/Install-from-packages#fedora)
 | 
				
			||||||
* [Gentoo](https://github.com/SirCmpwn/sway/wiki/Install-from-packages#gentoo)
 | 
					* [Gentoo](https://github.com/SirCmpwn/sway/wiki/Install-from-packages#gentoo)
 | 
				
			||||||
* [NixOS](https://github.com/SirCmpwn/sway/wiki/Install-from-packages#nixos)
 | 
					* [NixOS](https://github.com/SirCmpwn/sway/wiki/Install-from-packages#nixos)
 | 
				
			||||||
* [openSUSE Tumbleweed](https://github.com/SirCmpwn/sway/wiki/Install-from-packages#opensuse)
 | 
					* [openSUSE Tumbleweed](https://github.com/SirCmpwn/sway/wiki/Install-from-packages#opensuse)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,16 +1,13 @@
 | 
				
			||||||
 | 
					#include <stdint.h>
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include <getopt.h>
 | 
					 | 
				
			||||||
#include <stdint.h>
 | 
					 | 
				
			||||||
#include <sys/un.h>
 | 
					 | 
				
			||||||
#include <sys/socket.h>
 | 
					#include <sys/socket.h>
 | 
				
			||||||
 | 
					#include <sys/un.h>
 | 
				
			||||||
#include <unistd.h>
 | 
					#include <unistd.h>
 | 
				
			||||||
#include "log.h"
 | 
					 | 
				
			||||||
#include "stringop.h"
 | 
					 | 
				
			||||||
#include "ipc.h"
 | 
					 | 
				
			||||||
#include "readline.h"
 | 
					 | 
				
			||||||
#include "ipc-client.h"
 | 
					#include "ipc-client.h"
 | 
				
			||||||
 | 
					#include "readline.h"
 | 
				
			||||||
 | 
					#include "log.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const char ipc_magic[] = {'i', '3', '-', 'i', 'p', 'c'};
 | 
					static const char ipc_magic[] = {'i', '3', '-', 'i', 'p', 'c'};
 | 
				
			||||||
static const size_t ipc_header_size = sizeof(ipc_magic)+8;
 | 
					static const size_t ipc_header_size = sizeof(ipc_magic)+8;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										16
									
								
								common/log.c
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								common/log.c
									
										
									
									
									
								
							| 
						 | 
					@ -1,17 +1,15 @@
 | 
				
			||||||
#include "log.h"
 | 
					#include <errno.h>
 | 
				
			||||||
#include "sway.h"
 | 
					#include <libgen.h>
 | 
				
			||||||
#include "readline.h"
 | 
					#include <signal.h>
 | 
				
			||||||
#include <stdarg.h>
 | 
					#include <stdarg.h>
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
#include <libgen.h>
 | 
					 | 
				
			||||||
#include <fcntl.h>
 | 
					 | 
				
			||||||
#include <unistd.h>
 | 
					#include <unistd.h>
 | 
				
			||||||
#include <signal.h>
 | 
					 | 
				
			||||||
#include <time.h>
 | 
					 | 
				
			||||||
#include <errno.h>
 | 
					 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include <stringop.h>
 | 
					#include <time.h>
 | 
				
			||||||
 | 
					#include "log.h"
 | 
				
			||||||
 | 
					#include "sway.h"
 | 
				
			||||||
 | 
					#include "readline.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static int colored = 1;
 | 
					static int colored = 1;
 | 
				
			||||||
static log_importance_t loglevel_default = L_ERROR;
 | 
					static log_importance_t loglevel_default = L_ERROR;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,10 +1,13 @@
 | 
				
			||||||
#include <math.h>
 | 
					#include <math.h>
 | 
				
			||||||
 | 
					#include <stdint.h>
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
#include <string.h>
 | 
					 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
 | 
					#include <string.h>
 | 
				
			||||||
 | 
					#include <wlc/wlc.h>
 | 
				
			||||||
 | 
					#include <xkbcommon/xkbcommon-names.h>
 | 
				
			||||||
 | 
					#include "log.h"
 | 
				
			||||||
#include "readline.h"
 | 
					#include "readline.h"
 | 
				
			||||||
#include "util.h"
 | 
					#include "util.h"
 | 
				
			||||||
#include "log.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
int wrap(int i, int max) {
 | 
					int wrap(int i, int max) {
 | 
				
			||||||
	return ((i % max) + max) % max;
 | 
						return ((i % max) + max) % max;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,12 +1,12 @@
 | 
				
			||||||
#include "border.h"
 | 
					 | 
				
			||||||
#include <wlc/wlc-render.h>
 | 
					#include <wlc/wlc-render.h>
 | 
				
			||||||
#include <cairo/cairo.h>
 | 
					#include <cairo/cairo.h>
 | 
				
			||||||
#include <pango/pangocairo.h>
 | 
					#include <pango/pangocairo.h>
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
#include <arpa/inet.h>
 | 
					#include <arpa/inet.h>
 | 
				
			||||||
#include "container.h"
 | 
					#include "sway/border.h"
 | 
				
			||||||
#include "config.h"
 | 
					#include "sway/container.h"
 | 
				
			||||||
 | 
					#include "sway/config.h"
 | 
				
			||||||
#include "client/pango.h"
 | 
					#include "client/pango.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void cairo_set_source_u32(cairo_t *cairo, uint32_t color) {
 | 
					void cairo_set_source_u32(cairo_t *cairo, uint32_t color) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,24 +16,24 @@
 | 
				
			||||||
#include <limits.h>
 | 
					#include <limits.h>
 | 
				
			||||||
#include <float.h>
 | 
					#include <float.h>
 | 
				
			||||||
#include <libinput.h>
 | 
					#include <libinput.h>
 | 
				
			||||||
 | 
					#include "sway/layout.h"
 | 
				
			||||||
 | 
					#include "sway/focus.h"
 | 
				
			||||||
 | 
					#include "sway/workspace.h"
 | 
				
			||||||
 | 
					#include "sway/commands.h"
 | 
				
			||||||
 | 
					#include "sway/container.h"
 | 
				
			||||||
 | 
					#include "sway/output.h"
 | 
				
			||||||
 | 
					#include "sway/handlers.h"
 | 
				
			||||||
 | 
					#include "sway/resize.h"
 | 
				
			||||||
 | 
					#include "sway/input_state.h"
 | 
				
			||||||
 | 
					#include "sway/criteria.h"
 | 
				
			||||||
 | 
					#include "sway/ipc-server.h"
 | 
				
			||||||
 | 
					#include "sway/input.h"
 | 
				
			||||||
 | 
					#include "sway/border.h"
 | 
				
			||||||
#include "stringop.h"
 | 
					#include "stringop.h"
 | 
				
			||||||
#include "layout.h"
 | 
					 | 
				
			||||||
#include "focus.h"
 | 
					 | 
				
			||||||
#include "log.h"
 | 
					 | 
				
			||||||
#include "util.h"
 | 
					 | 
				
			||||||
#include "workspace.h"
 | 
					 | 
				
			||||||
#include "commands.h"
 | 
					 | 
				
			||||||
#include "container.h"
 | 
					 | 
				
			||||||
#include "output.h"
 | 
					 | 
				
			||||||
#include "handlers.h"
 | 
					 | 
				
			||||||
#include "sway.h"
 | 
					#include "sway.h"
 | 
				
			||||||
#include "resize.h"
 | 
					#include "util.h"
 | 
				
			||||||
#include "input_state.h"
 | 
					 | 
				
			||||||
#include "criteria.h"
 | 
					 | 
				
			||||||
#include "ipc-server.h"
 | 
					 | 
				
			||||||
#include "list.h"
 | 
					#include "list.h"
 | 
				
			||||||
#include "input.h"
 | 
					#include "log.h"
 | 
				
			||||||
#include "border.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct cmd_handler {
 | 
					struct cmd_handler {
 | 
				
			||||||
	char *command;
 | 
						char *command;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,17 +12,17 @@
 | 
				
			||||||
#include <limits.h>
 | 
					#include <limits.h>
 | 
				
			||||||
#include <float.h>
 | 
					#include <float.h>
 | 
				
			||||||
#include "wayland-desktop-shell-server-protocol.h"
 | 
					#include "wayland-desktop-shell-server-protocol.h"
 | 
				
			||||||
 | 
					#include "sway/commands.h"
 | 
				
			||||||
 | 
					#include "sway/config.h"
 | 
				
			||||||
 | 
					#include "sway/layout.h"
 | 
				
			||||||
 | 
					#include "sway/input_state.h"
 | 
				
			||||||
 | 
					#include "sway/criteria.h"
 | 
				
			||||||
 | 
					#include "sway/input.h"
 | 
				
			||||||
 | 
					#include "sway/border.h"
 | 
				
			||||||
#include "readline.h"
 | 
					#include "readline.h"
 | 
				
			||||||
#include "stringop.h"
 | 
					#include "stringop.h"
 | 
				
			||||||
#include "list.h"
 | 
					#include "list.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "log.h"
 | 
				
			||||||
#include "commands.h"
 | 
					 | 
				
			||||||
#include "config.h"
 | 
					 | 
				
			||||||
#include "layout.h"
 | 
					 | 
				
			||||||
#include "input_state.h"
 | 
					 | 
				
			||||||
#include "criteria.h"
 | 
					 | 
				
			||||||
#include "input.h"
 | 
					 | 
				
			||||||
#include "border.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct sway_config *config = NULL;
 | 
					struct sway_config *config = NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,17 +3,17 @@
 | 
				
			||||||
#include <stdbool.h>
 | 
					#include <stdbool.h>
 | 
				
			||||||
#include <strings.h>
 | 
					#include <strings.h>
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include "config.h"
 | 
					#include "sway/config.h"
 | 
				
			||||||
#include "stringop.h"
 | 
					#include "sway/container.h"
 | 
				
			||||||
#include "container.h"
 | 
					#include "sway/workspace.h"
 | 
				
			||||||
#include "workspace.h"
 | 
					#include "sway/focus.h"
 | 
				
			||||||
#include "focus.h"
 | 
					#include "sway/border.h"
 | 
				
			||||||
#include "border.h"
 | 
					#include "sway/layout.h"
 | 
				
			||||||
#include "layout.h"
 | 
					#include "sway/input_state.h"
 | 
				
			||||||
#include "input_state.h"
 | 
					#include "sway/ipc-server.h"
 | 
				
			||||||
 | 
					#include "sway/output.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "log.h"
 | 
				
			||||||
#include "ipc-server.h"
 | 
					#include "stringop.h"
 | 
				
			||||||
#include "output.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define ASSERT_NONNULL(PTR) \
 | 
					#define ASSERT_NONNULL(PTR) \
 | 
				
			||||||
	sway_assert (PTR, #PTR "must be non-null")
 | 
						sway_assert (PTR, #PTR "must be non-null")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,12 +2,12 @@
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
#include <stdbool.h>
 | 
					#include <stdbool.h>
 | 
				
			||||||
#include <regex.h>
 | 
					#include <regex.h>
 | 
				
			||||||
#include "criteria.h"
 | 
					#include "sway/criteria.h"
 | 
				
			||||||
 | 
					#include "sway/container.h"
 | 
				
			||||||
 | 
					#include "sway/config.h"
 | 
				
			||||||
#include "stringop.h"
 | 
					#include "stringop.h"
 | 
				
			||||||
#include "list.h"
 | 
					#include "list.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "log.h"
 | 
				
			||||||
#include "container.h"
 | 
					 | 
				
			||||||
#include "config.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
enum criteria_type { // *must* keep in sync with criteria_strings[]
 | 
					enum criteria_type { // *must* keep in sync with criteria_strings[]
 | 
				
			||||||
	CRIT_CLASS,
 | 
						CRIT_CLASS,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,7 +10,7 @@
 | 
				
			||||||
#include <errno.h>
 | 
					#include <errno.h>
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include <stringop.h>
 | 
					#include <stringop.h>
 | 
				
			||||||
#include "workspace.h"
 | 
					#include "sway/workspace.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* XXX:DEBUG:XXX */
 | 
					/* XXX:DEBUG:XXX */
 | 
				
			||||||
static void container_log(const swayc_t *c, int depth) {
 | 
					static void container_log(const swayc_t *c, int depth) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,11 +4,11 @@
 | 
				
			||||||
#include <wlc/wlc-render.h>
 | 
					#include <wlc/wlc-render.h>
 | 
				
			||||||
#include "wayland-desktop-shell-server-protocol.h"
 | 
					#include "wayland-desktop-shell-server-protocol.h"
 | 
				
			||||||
#include "wayland-swaylock-server-protocol.h"
 | 
					#include "wayland-swaylock-server-protocol.h"
 | 
				
			||||||
#include "layout.h"
 | 
					#include "sway/layout.h"
 | 
				
			||||||
 | 
					#include "sway/input_state.h"
 | 
				
			||||||
 | 
					#include "sway/extensions.h"
 | 
				
			||||||
 | 
					#include "sway/ipc-server.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "log.h"
 | 
				
			||||||
#include "input_state.h"
 | 
					 | 
				
			||||||
#include "extensions.h"
 | 
					 | 
				
			||||||
#include "ipc-server.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct desktop_shell_state desktop_shell;
 | 
					struct desktop_shell_state desktop_shell;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -119,27 +119,21 @@ static void set_lock_surface(struct wl_client *client, struct wl_resource *resou
 | 
				
			||||||
		if (!swayc_is_child_of(view, workspace)) {
 | 
							if (!swayc_is_child_of(view, workspace)) {
 | 
				
			||||||
			move_container_to(view, workspace);
 | 
								move_container_to(view, workspace);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		// make the view floating so it doesn't rearrange other
 | 
							// make the view floating so it doesn't rearrange other siblings.
 | 
				
			||||||
		// siblings.
 | 
					 | 
				
			||||||
		if (!view->is_floating) {
 | 
							if (!view->is_floating) {
 | 
				
			||||||
			// Remove view from its current location
 | 
					 | 
				
			||||||
			destroy_container(remove_child(view));
 | 
								destroy_container(remove_child(view));
 | 
				
			||||||
			// and move it into workspace floating
 | 
					 | 
				
			||||||
			add_floating(workspace, view);
 | 
								add_floating(workspace, view);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		wlc_view_set_state(view->handle, WLC_BIT_FULLSCREEN, true);
 | 
							wlc_view_set_state(view->handle, WLC_BIT_FULLSCREEN, true);
 | 
				
			||||||
		workspace->fullscreen = view;
 | 
							wlc_view_bring_to_front(view->handle);
 | 
				
			||||||
		ipc_event_window(view, "fullscreen_mode");
 | 
							wlc_view_focus(view->handle);
 | 
				
			||||||
		desktop_shell.is_locked = true;
 | 
							desktop_shell.is_locked = true;
 | 
				
			||||||
		// reset input state
 | 
					 | 
				
			||||||
		input_init();
 | 
							input_init();
 | 
				
			||||||
		// set focus if the lockscreen is spawned on the currently
 | 
							arrange_windows(workspace, -1, -1);
 | 
				
			||||||
		// active output
 | 
					 | 
				
			||||||
		swayc_t *focus_output = swayc_active_output();
 | 
							swayc_t *focus_output = swayc_active_output();
 | 
				
			||||||
		if (focus_output == output) {
 | 
							if (focus_output == output) {
 | 
				
			||||||
			set_focused_container(view);
 | 
								set_focused_container(view);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		arrange_windows(workspace, -1, -1);
 | 
					 | 
				
			||||||
		list_add(desktop_shell.lock_surfaces, surface);
 | 
							list_add(desktop_shell.lock_surfaces, surface);
 | 
				
			||||||
		wl_resource_set_destructor(surface, lock_surface_destructor);
 | 
							wl_resource_set_destructor(surface, lock_surface_destructor);
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										28
									
								
								sway/focus.c
									
										
									
									
									
								
							
							
						
						
									
										28
									
								
								sway/focus.c
									
										
									
									
									
								
							| 
						 | 
					@ -1,13 +1,13 @@
 | 
				
			||||||
#include <wlc/wlc.h>
 | 
					#include <wlc/wlc.h>
 | 
				
			||||||
 | 
					#include "sway/focus.h"
 | 
				
			||||||
#include "focus.h"
 | 
					#include "sway/workspace.h"
 | 
				
			||||||
 | 
					#include "sway/layout.h"
 | 
				
			||||||
 | 
					#include "sway/config.h"
 | 
				
			||||||
 | 
					#include "sway/extensions.h"
 | 
				
			||||||
 | 
					#include "sway/input_state.h"
 | 
				
			||||||
 | 
					#include "sway/ipc-server.h"
 | 
				
			||||||
 | 
					#include "sway/border.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "log.h"
 | 
				
			||||||
#include "workspace.h"
 | 
					 | 
				
			||||||
#include "layout.h"
 | 
					 | 
				
			||||||
#include "config.h"
 | 
					 | 
				
			||||||
#include "input_state.h"
 | 
					 | 
				
			||||||
#include "ipc-server.h"
 | 
					 | 
				
			||||||
#include "border.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool locked_container_focus = false;
 | 
					bool locked_container_focus = false;
 | 
				
			||||||
bool suspend_workspace_cleanup = false;
 | 
					bool suspend_workspace_cleanup = false;
 | 
				
			||||||
| 
						 | 
					@ -89,7 +89,6 @@ swayc_t *get_focused_container(swayc_t *parent) {
 | 
				
			||||||
	if (!parent) {
 | 
						if (!parent) {
 | 
				
			||||||
		return swayc_active_workspace();
 | 
							return swayc_active_workspace();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	// get focused container
 | 
					 | 
				
			||||||
	while (!parent->is_focused && parent->focused) {
 | 
						while (!parent->is_focused && parent->focused) {
 | 
				
			||||||
		parent = parent->focused;
 | 
							parent = parent->focused;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					@ -133,24 +132,24 @@ bool set_focused_container(swayc_t *c) {
 | 
				
			||||||
		p->is_focused = false;
 | 
							p->is_focused = false;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// get new focused view and set focus to it.
 | 
					 | 
				
			||||||
	if (!(wlc_view_get_type(p->handle) & WLC_BIT_POPUP)) {
 | 
						if (!(wlc_view_get_type(p->handle) & WLC_BIT_POPUP)) {
 | 
				
			||||||
		// unactivate previous focus
 | 
					 | 
				
			||||||
		if (focused->type == C_VIEW) {
 | 
							if (focused->type == C_VIEW) {
 | 
				
			||||||
			wlc_view_set_state(focused->handle, WLC_BIT_ACTIVATED, false);
 | 
								wlc_view_set_state(focused->handle, WLC_BIT_ACTIVATED, false);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		update_container_border(focused);
 | 
							update_container_border(focused);
 | 
				
			||||||
		// activate current focus
 | 
					 | 
				
			||||||
		if (c->type == C_VIEW) {
 | 
							if (c->type == C_VIEW) {
 | 
				
			||||||
			wlc_view_set_state(c->handle, WLC_BIT_ACTIVATED, true);
 | 
								wlc_view_set_state(c->handle, WLC_BIT_ACTIVATED, true);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		// set focus
 | 
							if (!desktop_shell.is_locked) {
 | 
				
			||||||
 | 
								// If the system is locked, we do everything _but_ actually setting
 | 
				
			||||||
 | 
								// focus. This includes making our internals think that this view is
 | 
				
			||||||
 | 
								// focused.
 | 
				
			||||||
			wlc_view_focus(c->handle);
 | 
								wlc_view_focus(c->handle);
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		if (c->parent->layout != L_TABBED && c->parent->layout != L_STACKED) {
 | 
							if (c->parent->layout != L_TABBED && c->parent->layout != L_STACKED) {
 | 
				
			||||||
			update_container_border(c);
 | 
								update_container_border(c);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// rearrange if parent container is tabbed/stacked
 | 
					 | 
				
			||||||
		swayc_t *parent = swayc_tabbed_stacked_ancestor(c);
 | 
							swayc_t *parent = swayc_tabbed_stacked_ancestor(c);
 | 
				
			||||||
		if (parent != NULL) {
 | 
							if (parent != NULL) {
 | 
				
			||||||
			arrange_backgrounds();
 | 
								arrange_backgrounds();
 | 
				
			||||||
| 
						 | 
					@ -175,7 +174,6 @@ bool set_focused_container_for(swayc_t *a, swayc_t *c) {
 | 
				
			||||||
		return false;
 | 
							return false;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	swayc_t *find = c;
 | 
						swayc_t *find = c;
 | 
				
			||||||
	// Ensure that a is an ancestor of c
 | 
					 | 
				
			||||||
	while (find != a && (find = find->parent)) {
 | 
						while (find != a && (find = find->parent)) {
 | 
				
			||||||
		if (find == &root_container) {
 | 
							if (find == &root_container) {
 | 
				
			||||||
			return false;
 | 
								return false;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,25 +7,24 @@
 | 
				
			||||||
#include <wlc/wlc-render.h>
 | 
					#include <wlc/wlc-render.h>
 | 
				
			||||||
#include <wlc/wlc-wayland.h>
 | 
					#include <wlc/wlc-wayland.h>
 | 
				
			||||||
#include <ctype.h>
 | 
					#include <ctype.h>
 | 
				
			||||||
 | 
					#include "sway/handlers.h"
 | 
				
			||||||
#include "handlers.h"
 | 
					#include "sway/border.h"
 | 
				
			||||||
#include "border.h"
 | 
					#include "sway/layout.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "sway/config.h"
 | 
				
			||||||
#include "layout.h"
 | 
					#include "sway/commands.h"
 | 
				
			||||||
#include "config.h"
 | 
					#include "sway/workspace.h"
 | 
				
			||||||
#include "commands.h"
 | 
					#include "sway/container.h"
 | 
				
			||||||
#include "stringop.h"
 | 
					#include "sway/output.h"
 | 
				
			||||||
#include "workspace.h"
 | 
					#include "sway/focus.h"
 | 
				
			||||||
#include "container.h"
 | 
					#include "sway/input_state.h"
 | 
				
			||||||
#include "output.h"
 | 
					#include "sway/resize.h"
 | 
				
			||||||
#include "focus.h"
 | 
					#include "sway/extensions.h"
 | 
				
			||||||
#include "input_state.h"
 | 
					#include "sway/criteria.h"
 | 
				
			||||||
#include "resize.h"
 | 
					#include "sway/ipc-server.h"
 | 
				
			||||||
#include "extensions.h"
 | 
					#include "sway/input.h"
 | 
				
			||||||
#include "criteria.h"
 | 
					 | 
				
			||||||
#include "ipc-server.h"
 | 
					 | 
				
			||||||
#include "list.h"
 | 
					#include "list.h"
 | 
				
			||||||
#include "input.h"
 | 
					#include "stringop.h"
 | 
				
			||||||
 | 
					#include "log.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Event should be sent to client
 | 
					// Event should be sent to client
 | 
				
			||||||
#define EVENT_PASSTHROUGH false
 | 
					#define EVENT_PASSTHROUGH false
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,8 +4,8 @@
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include <libinput.h>
 | 
					#include <libinput.h>
 | 
				
			||||||
#include "config.h"
 | 
					#include "sway/config.h"
 | 
				
			||||||
#include "input.h"
 | 
					#include "sway/input.h"
 | 
				
			||||||
#include "list.h"
 | 
					#include "list.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "log.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,10 +1,9 @@
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include <stdbool.h>
 | 
					#include <stdbool.h>
 | 
				
			||||||
#include <ctype.h>
 | 
					#include <ctype.h>
 | 
				
			||||||
 | 
					#include "sway/input_state.h"
 | 
				
			||||||
 | 
					#include "sway/config.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "log.h"
 | 
				
			||||||
#include "config.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#include "input_state.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define KEY_STATE_MAX_LENGTH 64
 | 
					#define KEY_STATE_MAX_LENGTH 64
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,9 +2,9 @@
 | 
				
			||||||
#include <ctype.h>
 | 
					#include <ctype.h>
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include <stdint.h>
 | 
					#include <stdint.h>
 | 
				
			||||||
#include "container.h"
 | 
					#include "sway/container.h"
 | 
				
			||||||
 | 
					#include "sway/ipc-json.h"
 | 
				
			||||||
#include "util.h"
 | 
					#include "util.h"
 | 
				
			||||||
#include "ipc-json.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
static json_object *ipc_json_create_rect(swayc_t *c) {
 | 
					static json_object *ipc_json_create_rect(swayc_t *c) {
 | 
				
			||||||
	json_object *rect = json_object_new_object();
 | 
						json_object *rect = json_object_new_object();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,15 +13,15 @@
 | 
				
			||||||
#include <json-c/json.h>
 | 
					#include <json-c/json.h>
 | 
				
			||||||
#include <list.h>
 | 
					#include <list.h>
 | 
				
			||||||
#include <libinput.h>
 | 
					#include <libinput.h>
 | 
				
			||||||
#include "ipc-json.h"
 | 
					#include "sway/ipc-json.h"
 | 
				
			||||||
#include "ipc-server.h"
 | 
					#include "sway/ipc-server.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "sway/config.h"
 | 
				
			||||||
#include "config.h"
 | 
					#include "sway/commands.h"
 | 
				
			||||||
#include "commands.h"
 | 
					#include "sway/input.h"
 | 
				
			||||||
#include "list.h"
 | 
					 | 
				
			||||||
#include "stringop.h"
 | 
					#include "stringop.h"
 | 
				
			||||||
 | 
					#include "log.h"
 | 
				
			||||||
 | 
					#include "list.h"
 | 
				
			||||||
#include "util.h"
 | 
					#include "util.h"
 | 
				
			||||||
#include "input.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
static int ipc_socket = -1;
 | 
					static int ipc_socket = -1;
 | 
				
			||||||
static struct wlc_event_source *ipc_event_source =  NULL;
 | 
					static struct wlc_event_source *ipc_event_source =  NULL;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,17 +2,17 @@
 | 
				
			||||||
#include <stdbool.h>
 | 
					#include <stdbool.h>
 | 
				
			||||||
#include <math.h>
 | 
					#include <math.h>
 | 
				
			||||||
#include <wlc/wlc.h>
 | 
					#include <wlc/wlc.h>
 | 
				
			||||||
#include "extensions.h"
 | 
					#include "sway/extensions.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "sway/config.h"
 | 
				
			||||||
 | 
					#include "sway/container.h"
 | 
				
			||||||
 | 
					#include "sway/workspace.h"
 | 
				
			||||||
 | 
					#include "sway/focus.h"
 | 
				
			||||||
 | 
					#include "sway/output.h"
 | 
				
			||||||
 | 
					#include "sway/ipc-server.h"
 | 
				
			||||||
 | 
					#include "sway/border.h"
 | 
				
			||||||
 | 
					#include "sway/layout.h"
 | 
				
			||||||
#include "list.h"
 | 
					#include "list.h"
 | 
				
			||||||
#include "config.h"
 | 
					#include "log.h"
 | 
				
			||||||
#include "container.h"
 | 
					 | 
				
			||||||
#include "workspace.h"
 | 
					 | 
				
			||||||
#include "focus.h"
 | 
					 | 
				
			||||||
#include "output.h"
 | 
					 | 
				
			||||||
#include "ipc-server.h"
 | 
					 | 
				
			||||||
#include "border.h"
 | 
					 | 
				
			||||||
#include "layout.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
swayc_t root_container;
 | 
					swayc_t root_container;
 | 
				
			||||||
list_t *scratchpad;
 | 
					list_t *scratchpad;
 | 
				
			||||||
| 
						 | 
					@ -575,7 +575,7 @@ void update_geometry(swayc_t *container) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// handle hide_edge_borders
 | 
							// handle hide_edge_borders
 | 
				
			||||||
		if (config->hide_edge_borders != E_NONE && (gap <= 0 || (config->smart_gaps && workspace->children->length == 1))) {
 | 
							if (config->hide_edge_borders != E_NONE && (gap <= 0 || (config->smart_gaps && workspace->children->length == 1))) {
 | 
				
			||||||
			if (config->hide_edge_borders == E_HORIZONTAL || config->hide_edge_borders == E_BOTH) {
 | 
								if (config->hide_edge_borders == E_VERTICAL || config->hide_edge_borders == E_BOTH) {
 | 
				
			||||||
				if (geometry.origin.x == workspace->x) {
 | 
									if (geometry.origin.x == workspace->x) {
 | 
				
			||||||
					border_left = 0;
 | 
										border_left = 0;
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
| 
						 | 
					@ -585,7 +585,7 @@ void update_geometry(swayc_t *container) {
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if (config->hide_edge_borders == E_VERTICAL || config->hide_edge_borders == E_BOTH) {
 | 
								if (config->hide_edge_borders == E_HORIZONTAL || config->hide_edge_borders == E_BOTH) {
 | 
				
			||||||
				if (geometry.origin.y == workspace->y || should_hide_top_border(container, geometry.origin.y)) {
 | 
									if (geometry.origin.y == workspace->y || should_hide_top_border(container, geometry.origin.y)) {
 | 
				
			||||||
					border_top = 0;
 | 
										border_top = 0;
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										18
									
								
								sway/main.c
									
										
									
									
									
								
							
							
						
						
									
										18
									
								
								sway/main.c
									
										
									
									
									
								
							| 
						 | 
					@ -8,17 +8,17 @@
 | 
				
			||||||
#include <signal.h>
 | 
					#include <signal.h>
 | 
				
			||||||
#include <unistd.h>
 | 
					#include <unistd.h>
 | 
				
			||||||
#include <getopt.h>
 | 
					#include <getopt.h>
 | 
				
			||||||
#include "extensions.h"
 | 
					#include "sway/extensions.h"
 | 
				
			||||||
#include "layout.h"
 | 
					#include "sway/layout.h"
 | 
				
			||||||
#include "stringop.h"
 | 
					#include "sway/config.h"
 | 
				
			||||||
#include "config.h"
 | 
					#include "sway/handlers.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "sway/input.h"
 | 
				
			||||||
#include "readline.h"
 | 
					#include "sway/ipc-server.h"
 | 
				
			||||||
#include "handlers.h"
 | 
					 | 
				
			||||||
#include "ipc-client.h"
 | 
					#include "ipc-client.h"
 | 
				
			||||||
#include "ipc-server.h"
 | 
					#include "readline.h"
 | 
				
			||||||
#include "input.h"
 | 
					#include "stringop.h"
 | 
				
			||||||
#include "sway.h"
 | 
					#include "sway.h"
 | 
				
			||||||
 | 
					#include "log.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static bool terminate_request = false;
 | 
					static bool terminate_request = false;
 | 
				
			||||||
static int exit_value = 0;
 | 
					static int exit_value = 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
#include <strings.h>
 | 
					#include <strings.h>
 | 
				
			||||||
#include <ctype.h>
 | 
					#include <ctype.h>
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
#include "output.h"
 | 
					#include "sway/output.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "log.h"
 | 
				
			||||||
#include "list.h"
 | 
					#include "list.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,11 +1,11 @@
 | 
				
			||||||
#include <wlc/wlc.h>
 | 
					#include <wlc/wlc.h>
 | 
				
			||||||
#include <math.h>
 | 
					#include <math.h>
 | 
				
			||||||
#include "layout.h"
 | 
					#include "sway/layout.h"
 | 
				
			||||||
#include "focus.h"
 | 
					#include "sway/focus.h"
 | 
				
			||||||
 | 
					#include "sway/input_state.h"
 | 
				
			||||||
 | 
					#include "sway/handlers.h"
 | 
				
			||||||
 | 
					#include "sway/resize.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "log.h"
 | 
				
			||||||
#include "input_state.h"
 | 
					 | 
				
			||||||
#include "handlers.h"
 | 
					 | 
				
			||||||
#include "resize.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
static bool set_size_floating(int new_dimension, bool use_width) {
 | 
					static bool set_size_floating(int new_dimension, bool use_width) {
 | 
				
			||||||
	swayc_t *view = get_focused_float(swayc_active_workspace());
 | 
						swayc_t *view = get_focused_float(swayc_active_workspace());
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -40,6 +40,9 @@ The following commands may only be used in the configuration file.
 | 
				
			||||||
	Sets variable $name to _value_. You can use the new variable in the arguments
 | 
						Sets variable $name to _value_. You can use the new variable in the arguments
 | 
				
			||||||
	of future commands.
 | 
						of future commands.
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
 | 
					**orientation** <horizontal|vertical|auto>::
 | 
				
			||||||
 | 
						Sets the default container layout for tiled containers.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The following commands cannot be used directly in the configuration file.
 | 
					The following commands cannot be used directly in the configuration file.
 | 
				
			||||||
They are expected to be used with **bindsym** or at runtime through **swaymsg**(1).
 | 
					They are expected to be used with **bindsym** or at runtime through **swaymsg**(1).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -6,18 +6,18 @@
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include <strings.h>
 | 
					#include <strings.h>
 | 
				
			||||||
#include <sys/types.h>
 | 
					#include <sys/types.h>
 | 
				
			||||||
#include "ipc-server.h"
 | 
					#include "sway/ipc-server.h"
 | 
				
			||||||
#include "extensions.h"
 | 
					#include "sway/extensions.h"
 | 
				
			||||||
#include "workspace.h"
 | 
					#include "sway/workspace.h"
 | 
				
			||||||
#include "layout.h"
 | 
					#include "sway/layout.h"
 | 
				
			||||||
 | 
					#include "sway/container.h"
 | 
				
			||||||
 | 
					#include "sway/handlers.h"
 | 
				
			||||||
 | 
					#include "sway/config.h"
 | 
				
			||||||
 | 
					#include "sway/focus.h"
 | 
				
			||||||
 | 
					#include "stringop.h"
 | 
				
			||||||
 | 
					#include "util.h"
 | 
				
			||||||
#include "list.h"
 | 
					#include "list.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "log.h"
 | 
				
			||||||
#include "container.h"
 | 
					 | 
				
			||||||
#include "handlers.h"
 | 
					 | 
				
			||||||
#include "config.h"
 | 
					 | 
				
			||||||
#include "stringop.h"
 | 
					 | 
				
			||||||
#include "focus.h"
 | 
					 | 
				
			||||||
#include "util.h"
 | 
					 | 
				
			||||||
#include "ipc.h"
 | 
					#include "ipc.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
char *prev_workspace_name = NULL;
 | 
					char *prev_workspace_name = NULL;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5,15 +5,14 @@
 | 
				
			||||||
#include <errno.h>
 | 
					#include <errno.h>
 | 
				
			||||||
#include <sys/wait.h>
 | 
					#include <sys/wait.h>
 | 
				
			||||||
#include <poll.h>
 | 
					#include <poll.h>
 | 
				
			||||||
 | 
					#include "swaybar/ipc.h"
 | 
				
			||||||
 | 
					#include "swaybar/render.h"
 | 
				
			||||||
 | 
					#include "swaybar/config.h"
 | 
				
			||||||
 | 
					#include "swaybar/status_line.h"
 | 
				
			||||||
 | 
					#include "swaybar/bar.h"
 | 
				
			||||||
#include "ipc-client.h"
 | 
					#include "ipc-client.h"
 | 
				
			||||||
#include "list.h"
 | 
					#include "list.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "log.h"
 | 
				
			||||||
#include "bar/ipc.h"
 | 
					 | 
				
			||||||
#include "bar/render.h"
 | 
					 | 
				
			||||||
#include "bar/config.h"
 | 
					 | 
				
			||||||
#include "bar/status_line.h"
 | 
					 | 
				
			||||||
#include "bar/bar.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void bar_init(struct bar *bar) {
 | 
					static void bar_init(struct bar *bar) {
 | 
				
			||||||
	bar->config = init_config();
 | 
						bar->config = init_config();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,7 +3,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "wayland-desktop-shell-client-protocol.h"
 | 
					#include "wayland-desktop-shell-client-protocol.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "log.h"
 | 
				
			||||||
#include "bar/config.h"
 | 
					#include "swaybar/config.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
uint32_t parse_position(const char *position) {
 | 
					uint32_t parse_position(const char *position) {
 | 
				
			||||||
	if (strcmp("top", position) == 0) {
 | 
						if (strcmp("top", position) == 0) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,11 +1,10 @@
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include <json-c/json.h>
 | 
					#include <json-c/json.h>
 | 
				
			||||||
 | 
					#include "swaybar/config.h"
 | 
				
			||||||
 | 
					#include "swaybar/ipc.h"
 | 
				
			||||||
#include "ipc-client.h"
 | 
					#include "ipc-client.h"
 | 
				
			||||||
#include "list.h"
 | 
					#include "list.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "log.h"
 | 
				
			||||||
#include "bar/config.h"
 | 
					 | 
				
			||||||
#include "bar/ipc.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
void ipc_send_workspace_command(const char *workspace_name) {
 | 
					void ipc_send_workspace_command(const char *workspace_name) {
 | 
				
			||||||
	uint32_t size = strlen("workspace ") + strlen(workspace_name) + 1;
 | 
						uint32_t size = strlen("workspace ") + strlen(workspace_name) + 1;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,9 +3,9 @@
 | 
				
			||||||
#include <string.h>
 | 
					#include <string.h>
 | 
				
			||||||
#include <stdbool.h>
 | 
					#include <stdbool.h>
 | 
				
			||||||
#include <getopt.h>
 | 
					#include <getopt.h>
 | 
				
			||||||
 | 
					#include "swaybar/bar.h"
 | 
				
			||||||
#include "ipc-client.h"
 | 
					#include "ipc-client.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "log.h"
 | 
				
			||||||
#include "bar/bar.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* global bar state */
 | 
					/* global bar state */
 | 
				
			||||||
struct bar swaybar;
 | 
					struct bar swaybar;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5,9 +5,9 @@
 | 
				
			||||||
#include "client/cairo.h"
 | 
					#include "client/cairo.h"
 | 
				
			||||||
#include "client/pango.h"
 | 
					#include "client/pango.h"
 | 
				
			||||||
#include "client/window.h"
 | 
					#include "client/window.h"
 | 
				
			||||||
#include "bar/config.h"
 | 
					#include "swaybar/config.h"
 | 
				
			||||||
#include "bar/status_line.h"
 | 
					#include "swaybar/status_line.h"
 | 
				
			||||||
#include "bar/render.h"
 | 
					#include "swaybar/render.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* internal spacing */
 | 
					/* internal spacing */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,9 +3,9 @@
 | 
				
			||||||
#include <unistd.h>
 | 
					#include <unistd.h>
 | 
				
			||||||
#include <json-c/json.h>
 | 
					#include <json-c/json.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "swaybar/config.h"
 | 
				
			||||||
 | 
					#include "swaybar/status_line.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "log.h"
 | 
				
			||||||
#include "bar/config.h"
 | 
					 | 
				
			||||||
#include "bar/status_line.h"
 | 
					 | 
				
			||||||
#include "util.h"
 | 
					#include "util.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define I3JSON_MAXDEPTH 4
 | 
					#define I3JSON_MAXDEPTH 4
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,13 +12,12 @@
 | 
				
			||||||
#include <signal.h>
 | 
					#include <signal.h>
 | 
				
			||||||
#include <stdbool.h>
 | 
					#include <stdbool.h>
 | 
				
			||||||
#include <unistd.h>
 | 
					#include <unistd.h>
 | 
				
			||||||
 | 
					 | 
				
			||||||
#include "client/window.h"
 | 
					#include "client/window.h"
 | 
				
			||||||
#include "client/registry.h"
 | 
					#include "client/registry.h"
 | 
				
			||||||
#include "client/cairo.h"
 | 
					#include "client/cairo.h"
 | 
				
			||||||
 | 
					#include "swaylock/swaylock.h"
 | 
				
			||||||
#include "ipc-client.h"
 | 
					#include "ipc-client.h"
 | 
				
			||||||
#include "log.h"
 | 
					#include "log.h"
 | 
				
			||||||
#include "lock/lock.h"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct registry *registry;
 | 
					struct registry *registry;
 | 
				
			||||||
struct render_data render_data;
 | 
					struct render_data render_data;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue