all repos — tint2 @ 1d88864c0c7f78f0ac7e20c0a34510f1c8f48b19

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

src/panel.h (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/**************************************************************************
* Copyright (C) 2008 Pål Staurland (staura@gmail.com)
* Modified (C) 2008/2009 thierry lorthiois (lorthiois@bbsoft.fr)
*
* panel :
* - draw panel and all objects according to panel_layout
*
*
**************************************************************************/

#ifndef PANEL_H
#define PANEL_H

#include <pango/pangocairo.h>
#include <sys/time.h>

#include "common.h"
#include "clock.h"
#include "task.h"
#include "taskbar.h"
#include "systraybar.h"


//panel mode
enum { SINGLE_DESKTOP=0, MULTI_DESKTOP, MULTI_MONITOR };

//panel alignment
enum { LEFT=0x01, RIGHT=0x02, CENTER=0X04, TOP=0X08, BOTTOM=0x10 };


typedef struct {
   // always start with area
   Area area;

   // --------------------------------------------------
   // backward compatibility
   int old_config_file;
   int old_task_icon;
   int old_panel_background;
   int old_task_background;
   char *old_task_font;

   // --------------------------------------------------
   // panel
   int signal_pending;
   int sleep_mode;
   int refresh;
   int monitor;
   int position;
   int marginleft, marginright, marginy;

   // --------------------------------------------------
   // taskbar point to the first taskbar in panel.area.list. number of tasbar == nb_desktop x nb_monitor.
   Taskbar *taskbar;
   int mode;
   int nb_desktop;
   int nb_monitor;
   Task *task_active;
   Task *task_drag;

   // --------------------------------------------------
   // clock
   Clock clock;

   // --------------------------------------------------
   // systray
   Systraybar systraybar;

   // --------------------------------------------------
   // mouse events
   int mouse_middle;
   int mouse_right;
   int mouse_scroll_up;
   int mouse_scroll_down;
} Panel;


Panel panel;


void visual_refresh ();
void set_panel_properties (Window win);
void window_draw_panel ();
void visible_object();
void set_panel_background();

#endif