~unity-team/compiz-core/core.fix_edgebuttons

« back to all changes in this revision

Viewing changes to src/privatewindow.h

  • Committer: Sam Spilsbury
  • Date: 2011-04-30 14:07:20 UTC
  • Revision ID: git-v1:74e8e9698d8851cfb40c81bd0648dcb56032e34c
Track windows on CreateNotify again, don't rely on trying to beat the race
condition by putting that on MapRequest, instead check at reparent time
if the window has already been reparented server-side and don't reparent it
again.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
class PrivateWindow {
47
47
 
48
48
    public:
49
 
        PrivateWindow (CoreWindow *window);
 
49
        PrivateWindow ();
50
50
        ~PrivateWindow ();
51
51
 
52
52
        void recalcNormalHints ();
304
304
        Time lastCloseRequestTime;
305
305
};
306
306
 
307
 
/* Minimal tracking of the window which happens
308
 
 * on CreateNotify */
309
 
 
310
307
class CoreWindow
311
308
{
312
 
    public:
313
 
 
314
 
        CoreWindow (Window id);
315
 
 
316
 
        CompWindow * manage (Window above, XWindowAttributes &wa);
317
 
 
318
 
        friend class PrivateWindow;
319
 
        friend class PrivateScreen;
320
 
        friend class CompScreen;
321
 
 
322
 
    private:
323
 
 
324
 
        PrivateWindow *priv;
 
309
public:
 
310
 
 
311
    CoreWindow (Window id);
 
312
 
 
313
    CompWindow * manage (Window above, XWindowAttributes &wa);
 
314
 
 
315
    friend class PrivateWindow;
 
316
    friend class PrivateScreen;
 
317
    friend class CompScreen;
 
318
 
 
319
private:
 
320
 
 
321
    PrivateWindow *priv;
325
322
};
326
323
 
327
324
#endif