fix: check before destroy

This commit is contained in:
Alex
2019-07-15 10:06:01 +02:00
parent 0834551161
commit bb99e6cf5b
2 changed files with 19 additions and 7 deletions

View File

@ -1,10 +1,10 @@
#pragma once
#include <glibmm/refptr.h>
#include <gtkmm/box.h>
#include <gtkmm/cssprovider.h>
#include <gtkmm/main.h>
#include <gtkmm/window.h>
#include <gtkmm/box.h>
#include <json/json.h>
#include "AModule.hpp"
#include "idle-inhibit-unstable-v1-client-protocol.h"
@ -15,10 +15,10 @@ namespace waybar {
class Factory;
struct waybar_output {
struct wl_output * output;
struct wl_output * output = nullptr;
std::string name;
uint32_t wl_name;
struct zxdg_output_v1 *xdg_output;
struct zxdg_output_v1 *xdg_output = nullptr;
};
class Bar {