~azzar1/unity/fix-839717-5.0

1410.5.13 by Sam Spilsbury
Added an x11-window-read-transients, which reads transient information
1
/*
2
 * Copyright (C) 2011 Canonical Ltd.
3
 *
4
 * This program is free software; you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation; either version 2 of the License, or
7
 * (at your option) any later version.
8
 *
9
 * This program is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 * GNU General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU General Public License
15
 * along with this program; if not, write to the Free Software
16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
 *
18
 * Authored By:
19
 * Sam Spilsbury <sam.spilsbury@canonical.com>
20
 */
21
22
#include <transientfor.h>
23
#include <X11/Xlib.h>
24
#include <X11/Xatom.h>
25
#include <vector>
26
#include <list>
27
#include <string>
28
29
#include <x11-window.h>
30
31
#ifndef _COMPIZ_X11_WINDOW_READ_TRANSIENTS_H
32
#define _COMPIZ_X11_WINDOW_READ_TRANSIENTS_H
33
34
class X11WindowReadTransients :
35
    public X11Window
36
{
37
  public:
38
39
    X11WindowReadTransients (Display *, Window id = 0);
1410.5.14 by Sam Spilsbury
Base the minimize handler test off of the read transients test
40
    virtual ~X11WindowReadTransients ();
1410.5.13 by Sam Spilsbury
Added an x11-window-read-transients, which reads transient information
41
42
    void makeTransientFor (X11WindowReadTransients *w);
43
    void setClientLeader (X11WindowReadTransients *w);
44
    void printTransients ();
45
46
    std::vector<unsigned int> transients ();
47
48
    unsigned int id () { return mXid; }
49
};
50
51
#endif