i3bar: Correctly handle removal of tray clients
This commit is contained in:
@ -29,6 +29,7 @@ struct rect_t {
|
||||
#include "outputs.h"
|
||||
#include "util.h"
|
||||
#include "workspaces.h"
|
||||
#include "trayclients.h"
|
||||
#include "xcb.h"
|
||||
#include "ucs2_to_utf8.h"
|
||||
#include "config.h"
|
||||
|
@ -46,9 +46,8 @@ struct i3_output {
|
||||
xcb_pixmap_t buffer; /* An extra pixmap for double-buffering */
|
||||
xcb_gcontext_t bargc; /* The graphical context of the bar */
|
||||
|
||||
int traypx; /* Amount of pixels reserved for tray icons */
|
||||
|
||||
struct ws_head *workspaces; /* The workspaces on this output */
|
||||
struct tc_head *trayclients; /* The tray clients on this output */
|
||||
|
||||
SLIST_ENTRY(i3_output) slist; /* Pointer for the SLIST-Macro */
|
||||
};
|
||||
|
24
i3bar/include/trayclients.h
Normal file
24
i3bar/include/trayclients.h
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* i3bar - an xcb-based status- and ws-bar for i3
|
||||
*
|
||||
* © 2010-2011 Axel Wagner and contributors
|
||||
*
|
||||
* See file LICNSE for license information
|
||||
*
|
||||
*/
|
||||
#ifndef TRAYCLIENT_H_
|
||||
#define TRAYCLIENT_H_
|
||||
|
||||
#include "common.h"
|
||||
|
||||
typedef struct trayclient trayclient;
|
||||
|
||||
TAILQ_HEAD(tc_head, trayclient);
|
||||
|
||||
struct trayclient {
|
||||
xcb_window_t win; /* The window ID of the tray client */
|
||||
|
||||
TAILQ_ENTRY(trayclient) tailq; /* Pointer for the TAILQ-Macro */
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user