diff options
author | David Eklov <david.eklov@gmail.com> | 2016-07-10 11:03:39 -0500 |
---|---|---|
committer | David Eklov <david.eklov@gmail.com> | 2016-07-14 17:15:31 -0500 |
commit | 4bb45abc46def3f05f83561745349c121e6a8a2a (patch) | |
tree | 099fbce796f757759872c7aa1b039de75932aac7 /sway/handlers.c | |
parent | Revert "swaybg: Make swaybg a shell surface" (diff) | |
download | sway-4bb45abc46def3f05f83561745349c121e6a8a2a.tar.gz sway-4bb45abc46def3f05f83561745349c121e6a8a2a.tar.zst sway-4bb45abc46def3f05f83561745349c121e6a8a2a.zip |
Don't treat backgrounds as shell surfaces
This code had some issues. Remove it now so that we can start clean and fix
it later.
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 4336b6c7..c339fa5e 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -176,17 +176,6 @@ static void handle_output_focused(wlc_handle output, bool focus) { | |||
176 | } | 176 | } |
177 | } | 177 | } |
178 | 178 | ||
179 | static bool client_is_background(struct wl_client *client) { | ||
180 | int i; | ||
181 | for (i = 0; i < desktop_shell.backgrounds->length; i++) { | ||
182 | struct background_config *config = desktop_shell.backgrounds->items[i]; | ||
183 | if (config->client == client) { | ||
184 | return true; | ||
185 | } | ||
186 | } | ||
187 | return false; | ||
188 | } | ||
189 | |||
190 | static bool client_is_panel(struct wl_client *client) { | 179 | static bool client_is_panel(struct wl_client *client) { |
191 | int i; | 180 | int i; |
192 | for (i = 0; i < desktop_shell.panels->length; i++) { | 181 | for (i = 0; i < desktop_shell.panels->length; i++) { |
@@ -229,7 +218,7 @@ static bool handle_view_created(wlc_handle handle) { | |||
229 | struct wl_client *client = wlc_view_get_wl_client(handle); | 218 | struct wl_client *client = wlc_view_get_wl_client(handle); |
230 | pid_t pid; | 219 | pid_t pid; |
231 | 220 | ||
232 | if (client_is_background(client) || client_is_panel(client)) { | 221 | if (client_is_panel(client)) { |
233 | return true; | 222 | return true; |
234 | } | 223 | } |
235 | 224 | ||