Cleanup indentation with clang-format and changed a few variable names
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -16,57 +16,59 @@
|
||||
#include <X11/extensions/Xdamage.h>
|
||||
|
||||
// XEMBED messages
|
||||
#define XEMBED_EMBEDDED_NOTIFY 0
|
||||
#define XEMBED_EMBEDDED_NOTIFY 0
|
||||
// Flags for _XEMBED_INFO
|
||||
#define XEMBED_MAPPED (1 << 0)
|
||||
#define XEMBED_MAPPED (1 << 0)
|
||||
|
||||
enum { SYSTRAY_SORT_ASCENDING, SYSTRAY_SORT_DESCENDING, SYSTRAY_SORT_LEFT2RIGHT, SYSTRAY_SORT_RIGHT2LEFT };
|
||||
typedef enum SystraySortMethod {
|
||||
SYSTRAY_SORT_ASCENDING = 0,
|
||||
SYSTRAY_SORT_DESCENDING,
|
||||
SYSTRAY_SORT_LEFT2RIGHT,
|
||||
SYSTRAY_SORT_RIGHT2LEFT,
|
||||
} SystraySortMethod;
|
||||
|
||||
typedef struct {
|
||||
// always start with area
|
||||
Area area;
|
||||
|
||||
GSList *list_icons;
|
||||
int sort;
|
||||
SystraySortMethod sort;
|
||||
int alpha, saturation, brightness;
|
||||
int icon_size, icons_per_column, icons_per_row, marging;
|
||||
int icon_size, icons_per_column, icons_per_row, margin;
|
||||
} Systraybar;
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
Window parent;
|
||||
Window win;
|
||||
int x, y;
|
||||
int width, height;
|
||||
// TODO: manage icon's show/hide
|
||||
int hide;
|
||||
gboolean hide;
|
||||
int depth;
|
||||
Damage damage;
|
||||
timeout* render_timeout;
|
||||
int empty;
|
||||
timeout *render_timeout;
|
||||
gboolean empty;
|
||||
int pid;
|
||||
int chrono;
|
||||
struct timespec time_last_render;
|
||||
struct timespec time_last_render;
|
||||
int num_fast_renders;
|
||||
int reparented;
|
||||
int embedded;
|
||||
gboolean reparented;
|
||||
gboolean embedded;
|
||||
int bad_size_counter;
|
||||
timeout* resize_timeout;
|
||||
timeout *resize_timeout;
|
||||
struct timespec time_last_resize;
|
||||
char *name;
|
||||
Imlib_Image image;
|
||||
} TrayWindow;
|
||||
|
||||
|
||||
// net_sel_win != None when protocol started
|
||||
extern Window net_sel_win;
|
||||
extern Systraybar systray;
|
||||
extern int refresh_systray;
|
||||
extern int systray_enabled;
|
||||
extern gboolean refresh_systray;
|
||||
extern gboolean systray_enabled;
|
||||
extern int systray_max_icon_size;
|
||||
extern int systray_monitor;
|
||||
extern int systray_profile;
|
||||
extern gboolean systray_profile;
|
||||
|
||||
// default global data
|
||||
void default_systray();
|
||||
@@ -79,9 +81,9 @@ void init_systray();
|
||||
void init_systray_panel(void *p);
|
||||
|
||||
void draw_systray(void *obj, cairo_t *c);
|
||||
int resize_systray(void *obj);
|
||||
gboolean resize_systray(void *obj);
|
||||
void on_change_systray(void *obj);
|
||||
int systray_on_monitor(int i_monitor, int nb_panels);
|
||||
gboolean systray_on_monitor(int i_monitor, int num_panelss);
|
||||
|
||||
// systray protocol
|
||||
// many tray icon doesn't manage stop/restart of the systray manager
|
||||
@@ -104,4 +106,3 @@ void systray_destroy_event(TrayWindow *traywin);
|
||||
void kde_update_icons();
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user