i3bar: properly handle the _XEMBED_INFO property

This commit is contained in:
Michael Stapelberg
2011-08-17 00:05:05 +02:00
parent 7df43989c9
commit 737cd10bdf
7 changed files with 129 additions and 18 deletions

View File

@ -9,8 +9,9 @@
#ifndef COMMON_H_
#define COMMON_H_
#include <stdbool.h>
typedef struct rect_t rect;
typedef int bool;
struct ev_loop* main_loop;
char *statusline;

View File

@ -17,6 +17,7 @@ TAILQ_HEAD(tc_head, trayclient);
struct trayclient {
xcb_window_t win; /* The window ID of the tray client */
bool mapped; /* Whether this window is mapped */
TAILQ_ENTRY(trayclient) tailq; /* Pointer for the TAILQ-Macro */
};

View File

@ -12,6 +12,11 @@
#include <stdint.h>
//#include "outputs.h"
#define SYSTEM_TRAY_REQUEST_DOCK 0
#define SYSTEM_TRAY_BEGIN_MESSAGE 1
#define SYSTEM_TRAY_CANCEL_MESSAGE 2
#define XEMBED_MAPPED (1 << 0)
struct xcb_color_strings_t {
char *bar_fg;
char *bar_bg;

View File

@ -8,4 +8,5 @@ ATOM_DO(_NET_SYSTEM_TRAY_ORIENTATION)
ATOM_DO(_NET_SYSTEM_TRAY_VISUAL)
ATOM_DO(CARDINAL)
ATOM_DO(_NET_SYSTEM_TRAY_OPCODE)
ATOM_DO(_XEMBED_INFO)
#undef ATOM_DO