3
* Compiz title bar information extension plugin
7
* Copyright : (C) 2009 by Danny Baumann
8
* E-mail : maniac@compiz.org
10
* Ported to Compiz 0.9 by:
11
* Copyright : (C) 2009 Sam Spilsbury
12
* E-mail : smspillaz@gmail.com
14
* This program is free software; you can redistribute it and/or
15
* modify it under the terms of the GNU General Public License
16
* as published by the Free Software Foundation; either version 2
17
* of the License, or (at your option) any later version.
19
* This program is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
* GNU General Public License for more details.
32
#include <X11/Xatom.h>
34
#include <sys/types.h>
37
#include <core/core.h>
38
#include <core/pluginclasshandler.h>
39
#include <core/atoms.h>
41
#include "titleinfo_options.h"
43
class TitleinfoScreen :
44
public PluginClassHandler <TitleinfoScreen, CompScreen>,
45
public ScreenInterface,
46
public TitleinfoOptions
50
TitleinfoScreen (CompScreen *);
57
handleEvent (XEvent *);
61
addSupportedAtoms (std::vector<Atom> &atoms);
64
getUtf8Property (Window id,
68
getTextProperty (Window id,
74
#define TITLEINFO_SCREEN(s) \
75
TitleinfoScreen *ts = TitleinfoScreen::get (screen)
77
class TitleinfoWindow :
78
public PluginClassHandler <TitleinfoWindow, CompWindow>
81
TitleinfoWindow (CompWindow *);
86
CompString remoteMachine;
104
#define TITLEINFO_WINDOW(w) \
105
TitleinfoWindow *tw = TitleinfoWindow::get (w);
107
class TitleinfoPluginVTable :
108
public CompPlugin::VTableForScreenAndWindow <TitleinfoScreen, TitleinfoWindow>