~jamespharaoh/ubuntu/oneiric/unity/fix-for-880672

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/transientfor.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-08-26 18:21:49 UTC
  • Revision ID: james.westby@ubuntu.com-20110826182149-c0ifremjok82210p
Tags: 4.10.2-0ubuntu2
* Backported some fixes from trunk:
  - build fix for armel (lp: #834576)
  - dnd from the application lens to the launcher work
  - small screen dash improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
  unsigned long nItems, nLeft;
45
45
  int           actualFormat;
46
46
  Atom          actualType;
47
 
  unsigned char *prop;
 
47
  void          *prop;
48
48
 
49
49
  if (XGetWindowProperty (priv->mDpy, priv->mXid, wmTransientFor, 0L, 2L, false,
50
 
                          XA_WINDOW, &actualType, &actualFormat, &nItems, &nLeft, &prop) == Success)
 
50
                          XA_WINDOW, &actualType, &actualFormat, &nItems, &nLeft, (unsigned char **)&prop) == Success)
51
51
  {
52
52
    if (actualType == XA_WINDOW && actualFormat == 32 && nLeft == 0 && nItems == 1)
53
53
    {
76
76
  unsigned long nItems, nLeft;
77
77
  int           actualFormat;
78
78
  Atom          actualType;
79
 
  unsigned char *prop;
 
79
  void          *prop;
80
80
  std::vector<std::string> strings;
81
81
  std::list<Atom>   atoms;
82
82
 
83
83
  if (XGetWindowProperty (priv->mDpy, priv->mXid, wmClientLeader, 0L, 2L, false,
84
 
                          XA_WINDOW, &actualType, &actualFormat, &nItems, &nLeft, &prop) == Success)
 
84
                          XA_WINDOW, &actualType, &actualFormat, &nItems, &nLeft, (unsigned char **)&prop) == Success)
85
85
  {
86
86
    if (actualType == XA_WINDOW && actualFormat == 32 && nLeft == 0 && nItems == 1)
87
87
    {
119
119
      * should consider to be part of a window group by this client leader */
120
120
 
121
121
            if (XGetWindowProperty (priv->mDpy, priv->mXid, wmWindowType, 0L, 15L, false,
122
 
                              XA_ATOM, &actualType, &actualFormat, &nItems, &nLeft, &prop) == Success)
 
122
                              XA_ATOM, &actualType, &actualFormat, &nItems, &nLeft, (unsigned char **)&prop) == Success)
123
123
      {
124
124
        if (actualType == XA_ATOM && actualFormat == 32 && nLeft == 0 && nItems)
125
125
        {
148
148
  int           actualFormat;
149
149
  Atom          actualType;
150
150
  Atom          wmClientList;
151
 
  unsigned char *prop;
 
151
  void          *prop;
152
152
  std::vector<unsigned int>   transients;
153
153
  std::vector<Window>   clientList;
154
154
 
156
156
 
157
157
  if (XGetWindowProperty (priv->mDpy, DefaultRootWindow (priv->mDpy), wmClientList, 0L, 512L, false,
158
158
                          XA_WINDOW, &actualType, &actualFormat, &nItems, &nLeft,
159
 
                          &prop) == Success)
 
159
                          (unsigned char **)&prop) == Success)
160
160
  {
161
161
    if (actualType == XA_WINDOW && actualFormat == 32 && nItems && !nLeft)
162
162
    {