|
|
|
@ -176,17 +176,6 @@ static void handle_output_focused(wlc_handle output, bool focus) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static bool client_is_background(struct wl_client *client) {
|
|
|
|
|
int i;
|
|
|
|
|
for (i = 0; i < desktop_shell.backgrounds->length; i++) {
|
|
|
|
|
struct background_config *config = desktop_shell.backgrounds->items[i];
|
|
|
|
|
if (config->client == client) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static bool client_is_panel(struct wl_client *client) {
|
|
|
|
|
int i;
|
|
|
|
|
for (i = 0; i < desktop_shell.panels->length; i++) {
|
|
|
|
@ -229,7 +218,7 @@ static bool handle_view_created(wlc_handle handle) {
|
|
|
|
|
struct wl_client *client = wlc_view_get_wl_client(handle);
|
|
|
|
|
pid_t pid;
|
|
|
|
|
|
|
|
|
|
if (client_is_background(client) || client_is_panel(client)) {
|
|
|
|
|
if (client_is_panel(client)) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|