Refactor panel refresh; new debug option debug_frames

This commit is contained in:
o9000
2017-03-04 12:19:35 +01:00
parent cb72aa7996
commit d7f294d7c2
14 changed files with 93 additions and 64 deletions

View File

@@ -90,6 +90,8 @@ extern Imlib_Image default_icon;
extern char *default_font;
extern XSettingsClient *xsettings_client;
extern gboolean debug_geometry;
extern gboolean debug_fps;
extern gboolean debug_frames;
typedef struct Panel {
Area area;
@@ -159,6 +161,8 @@ void init_panel_size_and_position(Panel *panel);
gboolean resize_panel(void *obj);
void render_panel(Panel *panel);
void shrink_panel(Panel *panel);
void _schedule_panel_redraw(const char *file, const char *function, const int line);
#define schedule_panel_redraw() _schedule_panel_redraw(__FILE__, __FUNCTION__, __LINE__)
void set_panel_items_order(Panel *p);
void place_panel_all_desktops(Panel *p);